CDO.message: one from address works, other doesn't

  • Thread starter Jan Paul van de Berg
  • Start date
J

Jan Paul van de Berg

Code (ASP/Javascript):

var myMail=Server.CreateObject("CDO.Message");
myMail.Subject="Subject";
myMail.From="(e-mail address removed)";
myMail.To="(e-mail address removed)";
myMail.TextBody="This is a message.";
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2;
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="localhost";
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25;
myMail.Configuration.Fields.Update();
myMail.Send();

I've used this code on many other sites on the same server to complete
satisfaction.

Problem: on my new site it seems only 1 domain can be used for from
addresses. So (e-mail address removed) causes the email to arrive, but no
other address or domain seems to work. I've received messages on several
domains that weren't the same as the working sending domain. The weird
thing is that the working domain doesn't have anything to do with the
website or domain this code runs on. It's on a different server.

Oh, and also: I don't have any spam filtering on the domains I receive the
test messages on, so it can't be that the messages are blocked depending on
the sender.
 
J

Jan Paul van de Berg

Op Thu, 28 Dec 2006 16:00:43 +0100 schreef Jan Paul van de Berg:
Code (ASP/Javascript):

var myMail=Server.CreateObject("CDO.Message");
myMail.Subject="Subject";
myMail.From="(e-mail address removed)";
myMail.To="(e-mail address removed)";
myMail.TextBody="This is a message.";
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2;
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="localhost";
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25;
myMail.Configuration.Fields.Update();
myMail.Send();

I've used this code on many other sites on the same server to complete
satisfaction.

Problem: on my new site it seems only 1 domain can be used for from
addresses. So (e-mail address removed) causes the email to arrive, but no
other address or domain seems to work. I've received messages on several
domains that weren't the same as the working sending domain. The weird
thing is that the working domain doesn't have anything to do with the
website or domain this code runs on. It's on a different server.

Oh, and also: I don't have any spam filtering on the domains I receive the
test messages on, so it can't be that the messages are blocked depending on
the sender.

Update: Another domain works but the messages arrive delayed. From
addresses from the site itself still aren't working.
 

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


Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top