Solved

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

Posted on 2004-03-31
5
10,499 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
  • 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Today I came across an interesting issue that had me pulling my hair out.  I was troubleshooting a new internal web site which uses integrated security instead of anonymous.  When browsing the site from my laptop, I was able to access it with no iss…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

756 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