Mono Support How to programatically send an e-mail with MonoX 

107467 put(a) pogledan, 3 odgovor(a), 21.2.2011. 10:54:38 - Kreirao(la) imarusic
21.2.2011. 10:57:37
3016 Reputacija 428 Ukupno objava

Hi,

I'm developing a small hello world application with MonoX and now I need to  programatically send an e-mail with MonoX. How can I do that ?

1
21.2.2011. 11:07:37
15993 Reputacija 2214 Ukupno objava

Hi imarusic,

there are  two ways to send an e-mail programatically:

1. you can use Asp.net SmtpClient to send an e-mail you can read more about it here.
2. You can use the MonoX built in MonoXMailSender to send mail:
- You can use one or more simple methods such as "SendMail(toAddress, title, plainContent)", "SendMail(fromAddress, toAddress, title, htmlContent, plainContent)"
- you can also send an e-mail asynchronously with "SendMailAsync()" but before using this method you need to add all your mail messages to MailQueue which is a property of MonoXMailSender class

2
21.2.2011. 11:13:16
3016 Reputacija 428 Ukupno objava

Great, thanks.

3
Ovo je MonoX demo site. Posjetite Mono Software za više detalja.