Wednesday, November 04, 2009

Programatically Sending Mails only to Outlook users and not sending to out side emails like Gmail,Yahoo etc.

I faced a problem in sending mails to outside of our domain.
I figured it out that i missed to add the following line of code before sending mail.

SmtpMail.SmtpServer = "EmailServername".

No comments: