473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SmtpFailedRecipientException but email is sent and received

Our staging server has several web sites that send emails. Most of the
sites can send email but one of them is gettting the following message when
HTML formatted email is sent. We created a test page and verifyied that the
exact same code works on another website but not this one. The interesting
thing is that the email is in fact sent and recieved by the recipient even
though the .net component is returning this error.

It doesn't matter if I send an email to someone on our domain or someone
outside the domain. Both get that error and both recevied the email.

We are setting the login and password to our exchange server to send the
email.

We are running Windows 2003 in a VMware instance for the IIS.

Again, the EXACT same code works on a another website on the same system in
the same VMware instance of Windows 2003. We have rebooted the server, we
have isolated the application pool, thinking that perhaps the default app
pool was corrupted. (We have encountered application pool corruptions that
gives us weird results in the past so I was grasping at straws here.)

Server Error in '/TopWeb' Application.
--------------------------------------------------------------------------------

Mailbox unavailable. The server response was: 5.1.1 User unknown
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about the error and where it originated in the code.

Exception Details: System.Net.Mail.SmtpFailedRecipientException: Mailbox
unavailable. The server response was: 5.1.1 User unknown

Source Error:

Line 74: //try
Line 75: //{
Line 76: formMail.SendHTMLData();
Line 77: LabelDisplay.CssClass = "t15";
Line 78: LabelDisplay.Text = "<p>An Email has been sent to your <span
class='t15purple'>" + domain + "</spanaccount with your TOP Connection
password, Please change your password once logged into the site, for
security purpose.</p><br><p>To change your password : Login to the site >
Edit My Profile Change Password</p>";

Source File: d:\Intranet\TopWeb\Testing\HTMLEmailSample.aspx.cs Line: 76

Stack Trace:

[SmtpFailedRecipientException: Mailbox unavailable. The server response was:
5.1.1 User unknown]
System.Net.Mail.SmtpClient.Send(MailMessage message) +1877
Haggen.UtilitiesLibrary.FormMail.SendHTMLData() +2117
HTMLEmailSample.ButtonSendMail_Click(Object sender, EventArgs e) in
d:\Intranet\TopWeb\Testing\HTMLEmailSample.aspx.cs :76
System.Web.UI.WebControls.Button.OnClick(EventArgs e) +105
System.Web.UI.WebControls.Button.RaisePostBackEven t(String eventArgument)
+107
System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String
eventArgument) +7
System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler
sourceControl, String eventArgument) +11
System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) +33
System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1746

Sep 11 '08 #1
0 946

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: JayB | last post by:
We sent out an email today to a list of subscribers from our database using ASP and CDO. For some reason, many people received it twice, including myself. I checked the database and there were do...
8
by: Dica | last post by:
i've got a client that wants to be able to review records about IIS generated emails. in his own words, he wants the "ability to track and report message status (i.e. how many messages were sent...
1
by: WillWeGetOurFreedomBack | last post by:
Here is the text of an email I recently received from a user of our Access 2K application. This is totally baffling to me. "WXYZ" = the name of our program for the purpose of this message. ...
1
by: bidllc | last post by:
I'm working on a minor bug from an open source bug tracking system (bugtracket.net). It's a great app, but I don't want to bother the creator any more than I have to, so I thought I'd pose the...
4
by: Fabio Visin | last post by:
Hi! I'm studing SmtpFailedRecipientException to trap errors when I'm sending e-mail. I modified a sample code founded on MSDN so: public static void errorMail() { MailAddress from = new...
5
by: MorpheusX | last post by:
Hi I have been having problems with smptclient in asp.net 2.0(C#). I found everytime I put a fake email address or any dodgy ones, it nevers calls SmtpFailedRecipientException in the catch...
5
by: =?Utf-8?B?c3Jpbml2YXM=?= | last post by:
Hi All, I have created an ASP.net application(.net framework v1.1) in which I am using System.web.mail namespace for sending the emails. If the email ID is wrong or if the destination mail box is...
12
by: bpw22az | last post by:
Bare with me guys. I will try and make this short and to the point. I have a website that allows students to check their admission status by submitting their email address which in turn sends them...
0
by: Velvet | last post by:
Our staging server has several web sites that send emails. Most of the sites can send email but one of them is gettting the following message when HTML formatted email is sent. We created a test...
1
by: poopsy | last post by:
hello I have been trying to send email to a group of users found in my database, but the problem is the email is being sent but not received. I have also tried sending only to one recipient, it does...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.