Click here to Skip to main content
11,705,098 members (60,165 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET
Hi!!!
Tell me the steps to get the status of sent mail in asp.net c#. Kindly give me the solution for this problem. I attached
the code below for further details.



Hint: If i sent mail to one email id, i want to get the status of sent email
Posted 5-Feb-13 2:22am
CShubham1.6K
Comments
Pete O'Hanlon at 5-Feb-13 8:25am
   
Nope. I can't see any code there. You might want to add it in.
Ankur\m/ at 5-Feb-13 8:29am
   
If I am getting your question right, have a flag against the record that your sending mail for in your database. Default it to false and set it to true if the mail gets sent successfully.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

If you don't receive any exceptions in your code or on your SMTP server, you can assume that it has been delivered. That is a problem with e-mail, there is no way to guaranteeing delivery.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

SmtpClient SmtpServer = new SmtpClient();
SmtpServer.Credentials = new Net.NetworkCredential("xyz@gmail.com", "password");
SmtpServer.Port = 587;
SmtpServer.Host = "smtp.gmail.com";
SmtpServer.EnableSsl = true;
 
mail = new MailMessage();
mail.DeliveryNotificationOptions = DeliveryNotificationOptions.OnFailure;
mail.ReplyTo = new MailAddress(TextBox1.Text);
SmtpServer.Send(mail);

This is for SMTP Delievry Response
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 605
1 OriginalGriff 329
2 Andy Lanng 175
3 CPallini 162
4 F-ES Sitecore 160
0 OriginalGriff 8,958
1 Sergey Alexandrovich Kryukov 8,276
2 CPallini 5,189
3 Maciej Los 4,726
4 Mika Wendelius 3,606


Advertise | Privacy | Mobile
Web02 | 2.8.150819.1 | Last Updated 5 Feb 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100