asp mail Using CDO.Message . not able to relay outside the intranet

P

Prashanth

Hi,

I am sending mails using CDO.Message . It is sending mails successfully
only if the destination addresses are within the intranet. If you try to
send a mail outside the intranet say (e-mail address removed) it gives an error.

Error No : -2147220977
Error Desc : The server rejected one or more recipient addresses. The server
response was: 550 5.7.1 Unable to relay for (e-mail address removed)

Is there any configurations i have left.

Thanx in advance,
PK
 
J

John Beschler

This error has nothing to do with ASP. What's happening is
your SMTP server is rejecting the mail because it thinks
it has come from a domain other than it's own or from a
connection outside it's domain. You need to make sure the
SMTP server recognizes your web server as being allowed to
send email from your domain.

HTH,
John
 
P

Prashanth

How do you make sure the SMTP server recognizes the web server as being
allowed to send email from my domain.
The webserver and the SMTP server are in the same domain. Say i even know
the login and password to connect to the SMTP server. Is there any APIs
through which i can make sure that i am sending mails from the same domain
as that of the SMTP server. Also please specify if there are any APIs for
connecting to the SMTP server.

Thanx in advance.
-PK
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top