
Send Email Using a DNS Server
An easy way to send mail from .NET is to use the DnsMailClient class. Here’s some sample code in both C# and VB: // in C#MailMessage msg = new MailMessage();msg.From = “[email protected]”;msg.To = “[email protected];[email protected]”;msg.Subject = “dns sending”;msg.Body = “it is a test.”;DnsMailClient client = new DnsMailClient();client.Send(msg);’ in VB.NETDim msg As