473,484 Members | 1,718 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 2688

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

Similar topics

8
1896
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
2465
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
2070
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
10839
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
2702
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
1443
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
1595
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
948
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
3465
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
6953
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
7105
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,...
1
6813
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5407
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4845
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4529
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3046
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3041
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
592
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.