Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

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…
First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

744 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

15 Experts available now in Live!

Get 1:1 Help Now