|
by bruce via Bruce Johnson's SOA(P) Box on 3/3/2005 3:35:00 PM
If you have looked at the process of sending emails from within .NET, odds are pretty good that you have stumbled across the SmtpServer class. To send email, you create a MailMessage object, assign the necessary properties and then use the Send method on SmtpServer. The SmtpServer class can be pointed to any mail server that you would like.
MailMessage message = new MailMessage();
message.From = "bjohnson@objectsharp.com";message.To = "who@ever.com";message.Subject = "Testing"
... [ read more ]
|