473,548 Members | 2,716 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SmtpFailedRecip ientException 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 .SmtpFailedReci pientException: Mailbox
unavailable. The server response was: 5.1.1 User unknown

Source Error:

Line 74: //try
Line 75: //{
Line 76: formMail.SendHT MLData();
Line 77: LabelDisplay.Cs sClass = "t15";
Line 78: LabelDisplay.Te xt = "<p>An Email has been sent to your <span
class='t15purpl e'>" + 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\Top Web\Testing\HTM LEmailSample.as px.cs Line: 76

Stack Trace:

[SmtpFailedRecip ientException: Mailbox unavailable. The server response was:
5.1.1 User unknown]
System.Net.Mail .SmtpClient.Sen d(MailMessage message) +1877
Haggen.Utilitie sLibrary.FormMa il.SendHTMLData () +2117
HTMLEmailSample .ButtonSendMail _Click(Object sender, EventArgs e) in
d:\Intranet\Top Web\Testing\HTM LEmailSample.as px.cs:76
System.Web.UI.W ebControls.Butt on.OnClick(Even tArgs e) +105
System.Web.UI.W ebControls.Butt on.RaisePostBac kEvent(String eventArgument)
+107
System.Web.UI.W ebControls.Butt on.System.Web.U I.IPostBackEven tHandler.RaiseP ostBackEvent(St ring
eventArgument) +7
System.Web.UI.P age.RaisePostBa ckEvent(IPostBa ckEventHandler
sourceControl, String eventArgument) +11
System.Web.UI.P age.RaisePostBa ckEvent(NameVal ueCollection postData) +33
System.Web.UI.P age.ProcessRequ estMain(Boolean
includeStagesBe foreAsyncPoint, Boolean includeStagesAf terAsyncPoint) +1746

Sep 11 '08 #1
0 955

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

Similar topics

8
1901
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 duplicate records and I know for sure that I have no other email address forwarding email. I checked my code and all seems ok. Perhaps someone can...
8
2468
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 successfully, how many were blocked, how many bounced back with an incorrect address)" i'd start by adding a new row containing the email...
1
1472
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. "What I did was I sent every email in my WXYZ to myself. Interestingly, most of the emails delivered. Out of 18, 6 wouldn’t deliver. I tried changing...
1
2078
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 question here. The problem is with an email that gets sent from the system. In a nutshell, it's an HTML format email that is choking on the string...
4
10850
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 MailAddress("fabio.visin@xxx.it"); MailAddress to = new MailAddress("webmaster@xxx.it"); MailMessage message = new MailMessage(from, to); message.Subject...
5
2708
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 statement. Any ideas why please? This is my coding: try { MailAddress fromAddress = new MailAddress(From, Name); ...
5
1447
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 full then ASP.net is not throwing any error.My application is still executing . But the failure message is coming to the sender's email box. I want...
12
1604
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 and our admissions office an email regarding their status in our SQL database. The ASP script that runs pulls all information from one table. ...
0
2710
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 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...
1
3470
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 not work either. I have already hosted my site here is my code: 1st page <html> <head>
0
7518
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7444
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7711
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7954
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6039
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5367
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3497
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1054
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
755
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.