
3.13.2003
Send Email from .NET applications.
using System.Web.Mail;
...
MailMessage message = new MailMessage ();
message.From = "webmaster@wintellect.com";
message.To = "luckywinner@somewhere.com";
message.Subject = "You Win!";
message.Body = "You have won the state lottery! To claim your prize, do a handstand on one hand and " +
"count backwards from 1,000,000 to 1";
SmtpMail.Send (message);
Comments:
Post a Comment