February 18th, 2009, 10:28 AM
Sending email using DNS server
Sometimes sending mails using an SMTP server is not feasible for a projectís requirement. We may want to utilize the MX record of the recipientís domain name. The following technical tip shows how to send mails using mail servers of recipientís domain. We will be using Aspose.Network for doing this.
MailMessage msg = new MailMessage();
msg.From = "firstname.lastname@example.org";
msg.To = "email@example.com;firstname.lastname@example.org";
msg.Subject = "dns sending";
msg.Body = "it is a test.";
DnsMailClient client = new DnsMailClient();
Dim msg As MailMessage = New MailMessage()
msg.From = "email@example.com"
msg.To = "firstname.lastname@example.org;email@example.com"
msg.Subject = "dns sending"
msg.Body = "it is a test.
Dim client As DnsMailClient = New DnsMailClient()
More about Aspose.Network
- Homepage of Aspose.Network:
- Read more technical tips by Aspose.Network.
Suite 119, 272 Victoria Avenue
Chatswood, NSW, 2067
Aspose - The .NET and Java component publisher
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.