I have an online app via webforms. When the user completes the final step...I would like the app to automatically send an email to a specific individual. I'm using the following code:
Imports System.Web.Mail
....
Dim Mail As New MailMessage
Mail.To = "be*******@hemingwaysoftware.com"
Mail.Subject = "Howdy"
Mail.From = "be*******@cox.com"
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(Mail)
I get this Error Message:
The server rejected one or more recipient addresses. The server response was: 550 5.7.1 Unable to relay for be*******@hemingwaysoftware.com
Any ideas how to fix this?
Thanks