| Author: Muthukumar 05 Aug 2008 | Member Level: Silver | Rating: Points: 6 |
Lavanya,
To create and send an e-mail message, follow these steps: 1. Create a MailMessage object. MailMessage and other mail-related classes are in the System.Net.Mail namespace. 2. Assign values to From, To, Subject and Body properties. 3. If necessary, create one or more Attachment objects and add them to the MailMessage object. 4. Create an SmtpClient object, and specify the SMTP server. 5. If the SMTP server requires clients to authenticate, add credentials to the SmtpClient object. 6. Pass your MailMessage object to the SmtpClient.Send method. Alternatively, you can use SmtpClient.SendAsync to send the message asynchronously.
|
| Author: lavanya 05 Aug 2008 | Member Level: Gold | Rating: Points: 2 |
hai muthukumar, thats a simple mail appln right,, i want to send mails btween folders of various modules can u exaplain me programatically>
|
| Author: Muthukumar 05 Aug 2008 | Member Level: Silver | Rating: Points: 1 |
You mean creating simple text log message files to be created in the Inbox folder?
|