SMTP server question

G

Guest

Trying to use the mail function SmtpMail.Send(objMailMessage) on my local
machine at home (SMTP server is installed), but am getting back this message:

System.Runtime.InteropServices.COMException(0x8004020f): The server rejected
one or more recipient addresses. The server response was: 550 5.7.1 unable to
relay for (e-mail address removed)

What do I nee to change in SMTP to be able to send out mail?
 
P

PL

The "Relay" setting pherhaps ?

I wish people would actually read the error messages ;-)

PL.
 
A

Andrew Robinson

Chris,

Under your IIS / SMTP properties, you need to allow relaying by the local
host.

Right click on your Default SMTP Virtual Server.

Properties -> Acess -> Relay Restrictions.

Grant access to the local host at address 127.0.0.1

Retain the "Only the list below" setting.

-Andrew
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top