string eMailSrvIP = System.Configuration.ConfigurationSettings.AppSett ings["eMailServerIP"];
MailMessage objEmail =new MailMessage();
objEmail.To = "
[email protected]";
objEmail.From = "
[email protected]";
objEmail.Bcc = "
[email protected]";
objEmail.Subject = "Example12";
objEmail.Body = "Exampe Message12";
objEmail.Priority = MailPriority.High;
SmtpMail.SmtpServer ="localhost";//"127.0.0.1";//(or)eMailSrvIP;
try
{
SmtpMail.Send(objEmail);
Response.Write("<p><strong> The Mail has been sent: </strong></p>");
}
catch (Exception exc)
{
System.Console.WriteLine(exc.Message);
Response.Write(exc.Message);
}
this is code include in my projects.No errors in a Page, Display result also shows the mail has been sent but not received in my email id ....
kindly clarify and give me a right solution .
Inbaa