Solved

The server response was: 550 5.7.1 Unable to relay for

Posted on 2006-07-14
2
2,719 Views
Last Modified: 2008-01-09
I keep getting this message from ASP.NET
The server response was: 550 5.7.1 Unable to relay for sender@domain.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 = "administrator@training.com"
        msg.To = "administrator@training.com"
        msg.Subject = " EMAIL TEST"
        SmtpMail.SmtpServer = "localhost"
        SmtpMail.Send(msg)
    End Sub
0
Comment
Question by:jskfan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 31

Accepted Solution

by:
moorhouselondon earned 250 total points
ID: 17115307
Try changing the msg.From parameter to a legitimate user in the Exchange Active Directory.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
If you don't know how to downgrade, my instructions below should be helpful.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Starting up a Project

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question