Last post Oct 22, 2008 05:10 AM by pwlasantha
Oct 20, 2008 08:55 PM|bydemandchd|LINK
I am trying to send a simple email through the following code:
protected void email_Click(object sender, EventArgs e)
//Utility.Email.sendEmail(host, -1, hostemail, "email@example.com", "Task Assignment", "emailBody");
System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage();
mail.To = "firstname.lastname@example.org";
mail.From = "email@example.com";
mail.Body = "test";
SmtpMail.SmtpServer = "localhost";
catch (HttpException ex)
Response.Write("HTTP Error: " + ex.ToString());
catch (Exception ex)
Response.Write("Error: " + ex.ToString());
My machine is part of a domain hou.cobait.com
My machine name is voodoo.hou.cobait.com
I have installed the SMTP server on my local machine. The folders in mail root have all the permissions.
My mails stay in the Queue folder for sometime and then they go to the Badmail folder. I am receiving the following error:
Unable to deliver this message because the follow error was encountered: "This message is a delivery status notification that cannot be delivered.".
The specific error code was 0xC00402C7.
The message sender was <>.
The message was intended for the following recipients.
SMTP asp.net mail IIS7
Oct 20, 2008 09:49 PM|Haissam|LINK
Check below link
Oct 20, 2008 09:55 PM|vinz|LINK
Have a look at the following links below for detail information and examples:
Oct 22, 2008 04:48 AM|Shengqing Yang - MSFT|LINK
For the error 0xC00402C7: "This message is a delivery status notification that cannot be delivered.", I found some references from internet for you:
In BadMail Directory, this error occur "0xC00402C7":
Configuring SMTP Server under IIS Step by Step:
http://www.vbulletin.com/forum/showthread.php?page=4&t=36058 (After #55)
Since the problem is quite related to IIS, I also suggest you posting this quesion in the forums:
Oct 22, 2008 05:10 AM|pwlasantha|LINK
read this article