public void SendMAil()
{
MailMessage newMail = new MailMessage();
newMail.To.Add("[email protected]");
newMail.From = new MailAddress(ConfigurationManager.AppSettings["FromMail"].ToString(), ConfigurationManager.AppSettings["FromMailDisplayName"].ToString());
newMail.Subject = "Hi";
newMail.Body = "this is the body";
SmtpClient SurveyMailClient = new SmtpClient(ConfigurationManager.AppSettings["SEMailServerIP"].ToString(), Convert.ToInt32(ConfigurationManager.AppSettings["SEMailServerPortNumber"]));
SurveyMailClient.DeliveryMethod = SmtpDeliveryMethod.Network;
SurveyMailClient.UseDefaultCredentials = true;
SurveyMailClient.Send(newMail);
}
Using the above code I am not able to track the undelivered mails in my outlook mail box(From Adress).If the mail is delivered successfully,the sent mail is not saving in Sent Items folder and if a mail is undelivered, mail delivery failure notice is not coming to my Inbox. So please help me how to track the undelivered mails from my application side using the above code.