MailMessage mail = new MailMessage();
mail.To = "me@mycompany.com";
mail.From = "you@yourcompany.com";
mail.Subject = "this is a test email.";
mail.BodyFormat = MailFormat.Html;
mail.Body = "this is my test email body.<br><b>this part is in bold</b>";
SmtpMail.SmtpServer = "localhost";  //your real server goes here
SmtpMail.Send( mail );
Tags
Comments
Write the first comment
Leave a trace
Name *
Email *
Website
Anti SPAM * Code (1 + 4) =
Leave me a comment *
 
All comments are subject to editorial review
Post being viewed right now
Item date: 27.09.2009
Views: 1820
Item date: 01.02.2009
Views: 306
Item date: 24.08.2009
Views: 506
Item date: 09.03.2009
Views: 1290
Item date: 11.04.2009
Views: 852
Item date: 01.10.2008
Views: 535
Item date: 17.06.2009
Views: 2040
Item date: 03.01.2009
Views: 821
Item date: 08.10.2010
Views: 2181
Item date: 20.07.2009
Views: 1497