hi,
i wish to sending mail in asp.net from local host.when i send the mail.Message sending failed error will occur,how can i solve this
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Chakshu JindalPosted Jun 4, 2012, 3:41 AM
And its very easy, don't get bothered, try to understand it.
Suthish NairPosted Feb 10, 2011, 8:19 AM
Please stop creating duplicate posts.. Update your existing post if the thread still not resolved.
Jaganathan BantheswaranPosted Feb 10, 2011, 6:43 AM
Are you using Code like this.
MailMessage msg = new MailMessage();
msg.To = "To address";
msg.From = "From address";
msg.Subject = "Subjust";
msg.Body = "body of the mail";
SmtpMail.SmtpServer = "smtp.yourISP.com";
SmtpMail.Send(msg);