By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,606 Members | 2,019 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,606 IT Pros & Developers. It's quick & easy.

smtp mail send weird question

P: n/a
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 = "xx*@hotmail.com";
MyMail.From = "xx*@xxx.net";
MyMail.Subject = "hello";
MyMail.Body = "sometext";
SmtpMail.SmtpServer = "sendmail.xxx.com";
SmtpMail.Send(MyMail);

}
catch(Exception eee)
{
Literalmsg.Text ="mail sent error";
}
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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
I am not sure whether the MyMail.from is correct.
MyMail.From = "xx*@xxx.net";

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.