smtp mail send weird question

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";
}
 
J

Jure Spik

My smtp server wouldn't let me send mail from addresses not on the same
domain. I would use smtp.xxx.net or similar in your case.
Jure
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

mail attachment program in c# 1
SMTP question 8
503 This mail server requires authentication 2
Email out of C# 1
System.Web.Mail... 1
System.web.mail 2
Update VB6 to VB.NET 2.0 Email Send 2
Email Client 1

Top