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 firstname.lastname@example.org.
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 = "email@example.com"
msg.To = "firstname.lastname@example.org"
msg.Subject = " EMAIL TEST"
SmtpMail.SmtpServer = "localhost"