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

Viewed 97832 time(s), 3 post(s), 2/21/2011 10:54:38 AM - by imarusic
2/21/2011 10:57:37 AM
3016 Reputation 428 Total posts


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 ?

2/21/2011 11:07:37 AM
15993 Reputation 2214 Total posts

Hi imarusic,

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

1. you can use 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/2011 11:13:16 AM
3016 Reputation 428 Total posts

Great, thanks.

This is a demo site for MonoX. Please visit Mono Software for more info.