Hi experts, I tried to use System.Web.Mail.MailMessage to send a tests email in my VB.NET program. I built and run the program, no build errors, exceptions or whatsoever, everything seems to work fine, however the test email is not delivered at all. what are the possible causes? is there a resource that particularly discuss this topic?
Here is the basic configuration of my local SMTP server:
Anynomous access; In Relay Restriction, I granted access for "127.0.0.1";
Here is the exact code I used (except email):
Dim mailMsg As New MailMessage
mailMsg.From = "email@example.com"
mailMsg.To = "firstname.lastname@example.org"
mailMsg.Subject = "test subject"
mailMsg.Body = "test Body"
mailMsg.BodyFormat = MailFormat.Text
SmtpMail.SmtpServer = "127.0.0.1"