I met the same problem this morning.
In my case, my boss changed the Smtp server in my machine but I didn't realize it. After I changed to the correct SmtpServer. My code works AGAIN!
MailMessage objEmail = new MailMessage();
// Make sure you have appropriate replying permissions from your local system
SmtpMail.SmtpServer = "REAL SMTPSERVER"
If you can send email using Outlook, you can find your SmtpServer at tools->Email Accounts -> Outbox server.
Hope you don't make the same mistake.
|