473,549 Members | 2,784 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Email using ASP.net

Hi All,
I have created an ASP.net application(.ne t 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.
Is there any way in ASP.net to capture this?
Please help!
Thanks in advance
Nov 27 '07 #1
5 1447
"srinivas" <sr******@discu ssions.microsof t.comwrote in message
news:E3******** *************** ***********@mic rosoft.com...
Is there any way in ASP.net to capture this?
No.
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Nov 27 '07 #2
ASP.Net uses SMTP, which means that the message is transmitted via an SMTP
server. It is transmitted to the SMTP server of the domain that is
indicated, and unless an exception occurs during transmission, there will be
no error. The email reply that appears in the sender's mail box is a reply
from the server that received the message. In other words, the message was
sent and received. There was no error. Think of it this way. You write a
letter to somebody and put their address on the front of it. You put it in
your mail box and the mailman picks it up and takes it to the local post
office. The zip code is used to send it to the receiving post office, where
it will be sorted and delivered. But the street address has the wrong number
in it, one that does not exist. The receiving post office sends the letter
back to the return address. However, no problems occurred in the process of
the mail man picking up the letter, taking it to the local post office, or
during the process of the local post office sending it to the remote post
office. The "Incorrect address" mail reply is not sent to the local post
office. It is sent to the sender of the mail. The local post office has no
idea if the letter was delivered to any final destination. It only knows
that it was successfully delivered to the remote post office.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"srinivas" <sr******@discu ssions.microsof t.comwrote in message
news:E3******** *************** ***********@mic rosoft.com...
Hi All,
I have created an ASP.net application(.ne t 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.
Is there any way in ASP.net to capture this?
Please help!
Thanks in advance

Nov 27 '07 #3
*clap clap* now thats a great answer to a post. If only everyone answered
with such clarity.
"Kevin Spencer" <un**********@n othinks.comwrot e in message
news:%2******** ********@TK2MSF TNGP03.phx.gbl. ..
ASP.Net uses SMTP, which means that the message is transmitted via an SMTP
server. It is transmitted to the SMTP server of the domain that is
indicated, and unless an exception occurs during transmission, there will
be no error. The email reply that appears in the sender's mail box is a
reply from the server that received the message. In other words, the
message was sent and received. There was no error. Think of it this way.
You write a letter to somebody and put their address on the front of it.
You put it in your mail box and the mailman picks it up and takes it to
the local post office. The zip code is used to send it to the receiving
post office, where it will be sorted and delivered. But the street address
has the wrong number in it, one that does not exist. The receiving post
office sends the letter back to the return address. However, no problems
occurred in the process of the mail man picking up the letter, taking it
to the local post office, or during the process of the local post office
sending it to the remote post office. The "Incorrect address" mail reply
is not sent to the local post office. It is sent to the sender of the
mail. The local post office has no idea if the letter was delivered to any
final destination. It only knows that it was successfully delivered to the
remote post office.

--
HTH,

Kevin Spencer
Chicken Salad Surgeon
Microsoft MVP

"srinivas" <sr******@discu ssions.microsof t.comwrote in message
news:E3******** *************** ***********@mic rosoft.com...
>Hi All,
I have created an ASP.net application(.ne t 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.
Is there any way in ASP.net to capture this?
Please help!
Thanks in advance


Nov 27 '07 #4
Mark and Kevin are right, the only workaround I see is...

- Create an account just for sending that automated emails.
- Send the emails (no way to capture that error).
- Check:
- Manually which emails failed (checking the received items account).
- Automatically read from the POP3 queue and check which message
where returned (not straight forward but possible to implement, there are
plenty of thirdparty components available, even free ones....).

Good Luck
Braulio

/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------


"srinivas" wrote:
Hi All,
I have created an ASP.net application(.ne t 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.
Is there any way in ASP.net to capture this?
Please help!
Thanks in advance
Nov 27 '07 #5
Thanks all! Thanks for the info.

"Braulio Diez" wrote:
Mark and Kevin are right, the only workaround I see is...

- Create an account just for sending that automated emails.
- Send the emails (no way to capture that error).
- Check:
- Manually which emails failed (checking the received items account).
- Automatically read from the POP3 queue and check which message
where returned (not straight forward but possible to implement, there are
plenty of thirdparty components available, even free ones....).

Good Luck
Braulio

/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------


"srinivas" wrote:
Hi All,
I have created an ASP.net application(.ne t 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.
Is there any way in ASP.net to capture this?
Please help!
Thanks in advance
Nov 28 '07 #6

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

Similar topics

12
8751
by: Chuck Anderson | last post by:
Can anyone point me in the right direction? I want to use Php to automate confirmation of someone joining an email list by them replying to an email (so they don't have to have a browser?). I will probably use a hyperlink with a unique ID, but I also want to know how to go about reading from a mailbox with Php so I can use an email reply...
7
2200
by: BenignVanilla | last post by:
My ISP provides a web based email client, but it is not brandable and the features are not that extensive. I'd like to build my own. Has anyone done this, or is anyone aware of any tools out there to do this? BV. www.iheartmypond.com
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...
88
12363
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
117
11752
by: Steevo | last post by:
Any suggestions as to the best programs for cloaking email addresses? Many thanks -- Steevo
9
4295
by: Bob Jones | last post by:
We have developed a commercial ASP.net application (personal nutrition management and tracking); we want to send smtp email from within it. For our development box, we use WinXP Pro, IIS 5.5, VisualStudio2002, VB as programing language. Our test/development version of the web app as hosted on our "localhost" works fine; our "Default SMTP...
3
5400
by: Frank | last post by:
I am attempting to develop a solution where I handle bounced e-mails. I wish to field all bounced emails in a custom email account such a bounced@mycompany.com From the aricle at http://www.systemwebmail.com/faq/2.7.aspx, I gather I could use: mail.Headers.Add( "Reply-To", "alternate_email@mycompany.com" ); When I test this from a test...
9
77414
by: Mahernoz | last post by:
Can i send an email from JavaScript? Is it possible? If yes please the code to send email using javascript...
4
17444
Frinavale
by: Frinavale | last post by:
Introduction Many .NET applications will require an email be sent out for various reasons. This article will give a quick examples on how to send an email using VB.NET. The examples given can easily be translated into C#.NET. Storing Email Credentials If you are developing a web application the best place to store your email credentials is...
3
7231
by: anu b | last post by:
Hii I am using System.net.mail for sending email... i need to send a webpage with its html content as my email body .....for that i used mail.Isbodyhtml as true...but it is not working for me so pls help me....
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
7715
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
7956
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
7808
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...
0
6040
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...
0
5087
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1935
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
1
1057
muto222
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.