473,609 Members | 2,222 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 2718

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

Similar topics

8
1903
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 take a look at it and see if I screwed up somewhere? It was sent to over 9,000 email addresses. When...
8
2487
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 address, dateTime, etc when first sending the email, but how to track the rest of the info? for...
1
2084
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 that is returned form this function that is added to the email's body:
4
10856
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 = "Using the SmtpClient class.";
5
2715
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); //***You can specify the host name or ipaddress of your server
5
1451
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 to capture the error thrown by the destination mail server within the ASP.net application itself....
12
1615
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. There are three possible status types; 'AC (App Complete), AI (App Incomplete), and UR (Under Review)'. ...
0
959
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 recieved by the recipient even though the .net component is returning this error. It doesn't...
1
3476
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
8053
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8557
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8205
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8380
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6983
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4007
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4066
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1374
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.