The server response was: 550 5.7.1 Unable to relay for
Posted on 2006-07-14
I keep getting this message from ASP.NET
The server response was: 550 5.7.1 Unable to relay for email@example.com.
in XP , I have Visual Studion installed in it, in SMTP Virtual server of XP I added the machine itself for a relay.
in Exchange server 2003 I added the XP machine name in a relay restriction also.
I have this code in asp.net:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim msg As New MailMessage
msg.From = "firstname.lastname@example.org"
msg.To = "email@example.com"
msg.Subject = " EMAIL TEST"
SmtpMail.SmtpServer = "localhost"