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.
Suthish NairPosted Feb 11, 2011, 5:24 AM
Also, did you configured mailing server client on you system through IIS.
krithika muthukrishnanPosted Feb 11, 2011, 3:43 AM
hi,
here i create the object to smtpclient for sending the mail used by system.net.mail namespace.
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.From = new MailAddress(from);
message.To.Add(to);
message.Subject = subject;
message.Body = body;
//create an object for smtp cliend used to sending the mail
SmtpClient smtp = new SmtpClient("192.168.1.117");
smtp.Send(message);
Suthish NairPosted Feb 11, 2011, 3:29 AM
krithika muthukrishnanPosted Feb 11, 2011, 1:24 AM
Now i successfully send my mail,but after i send the mail when i am going to see the mail there is no message is received in my inbox,i dont know what the mistake was,can anyone tell me the solution.
thanks,
Suthish NairPosted Feb 10, 2011, 8:12 AM
Your localhost system needs to configured to that.
ShankeyPosted Feb 10, 2011, 7:14 AM
I think you must have some local smtp settings, again which should be configured in web.app of the application like below,