c# mail question

  • Thread starter Thread starter a
  • Start date Start date
A

a

i have a problem with sending mail.
it works ok only when sender and recipient are in same domain.

if they are not it returns exception:
Mailbox name not allowed. The server response was: sorry, that domain
isn't in my list of allowed rcpthosts (#5.7.1)
 
If you're using a SMTP server that's under your control, go into IIS and get
to the properties dialog. On the Access tab, click the Relay button and add
your sending IP address to the list of computers that are allowed to relay
through the server. If the server's on the same machine you're sending from,
add 127.0.0.1 to the list.

HTH,
Tom Dacon
Dacon Software Consulting
 

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

Back
Top