Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Plan upgrade exchange 2010 to exchange 2016 5 137
IIS7 FTP default folder 8 88
PDF Embed pdfobject.js local path problem regular ASP 2 119
DLL in ASP.NET 20 57
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…
Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

863 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now