Solved

SMTP error (code 0xC00402C7), multiple receivers email being dumped to badmail folder

Posted on 2004-03-31
5
10,517 Views
Last Modified: 2007-12-19
A SMTP problem: when email receiver is more than one person which are saprated by ";", the smtp will dump the mail to badmail folder with no reason. But ok for one email address. "The specific error code was 0xC00402C7" in BDR file and "Delivery to the following recipients failed.
someone1@somecom.com; someone2@someothercom.com" in BAD file

P.S both email addresses are valid, and can be sent if one receiver.

Many thanks
0
Comment
Question by:xinkun
[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
  • 3
5 Comments
 
LVL 5

Expert Comment

by:n0ch1ps
ID: 10726843
Try it this way :

objMail.To = "someone1@someone.com";
objMail.To = "someone2@someone.com";
objMail.To = "someone3@someone.com";

Regards

Si
0
 
LVL 7

Accepted Solution

by:
daniel_c earned 125 total points
ID: 10727856
What about using "," (comma), instead of semicolon?

objMail.To = "someone1@somecom.com,someone2@someothercom.com"
0
 
LVL 5

Expert Comment

by:n0ch1ps
ID: 10730390
You can't pass the address as a string like that, you must first call the object, i.e. Set ObjMail = Server.CreateObject("CDONTS.NewMail") in each instance.

The address is seen by the smtp server as someone1@somecom.com,someone2@someothercom.com.

Cheers

Si
0
 

Author Comment

by:xinkun
ID: 10730794
Thanks, daniel c
It works when changed to "," from ";". But very strange since according to MSDN, Multiple recipients on the list are separated by semicolons
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cdo/html/_denali_to_property_cdonts_newmail_object_.asp
0
 
LVL 5

Expert Comment

by:n0ch1ps
ID: 10730819
I stand corrected, I've never got it to work that way :-\

Thanks

Si
0

Featured Post

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

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

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

626 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