G
Guest
Hello, I write a simple code to send email via my webpage.
But there is no errors in the program when I trace it, and NO EMAIL get received in my hotmail box. Any idea? Seems all emails not been sent, thanks
I am sure there is no send email authentication for password, but I am not sure whether the MyMail.from is correct
Thank
try
{
MailMessage MyMail = new MailMessage();
MyMail.To = "(e-mail address removed)";
MyMail.From = "(e-mail address removed)";
MyMail.Subject = "hello";
MyMail.Body = "sometext";
SmtpMail.SmtpServer = "sendmail.xxx.com";
SmtpMail.Send(MyMail);
}
catch(Exception eee)
{
Literalmsg.Text ="mail sent error";
}
But there is no errors in the program when I trace it, and NO EMAIL get received in my hotmail box. Any idea? Seems all emails not been sent, thanks
I am sure there is no send email authentication for password, but I am not sure whether the MyMail.from is correct
Thank
try
{
MailMessage MyMail = new MailMessage();
MyMail.To = "(e-mail address removed)";
MyMail.From = "(e-mail address removed)";
MyMail.Subject = "hello";
MyMail.Body = "sometext";
SmtpMail.SmtpServer = "sendmail.xxx.com";
SmtpMail.Send(MyMail);
}
catch(Exception eee)
{
Literalmsg.Text ="mail sent error";
}