Sending Mail
-
Hi Can any one tell me how to send a mail using asp.net I used the code like this using System.Web.Mail; MailMessage objmm = new MailMessage(); objmm.From = "anusha.dileep@gmail.com"; objmm.To = txtMailid.Text; objmm.Cc = txtMailid.Text; objmm.Subject = "My Web Ambitions"; objmm.BodyFormat = MailFormat.Text; objmm.Body = surl; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(objmm); Its not shoeing any error in code but the mail doesnot deliver hepl me pls
-
Hi Can any one tell me how to send a mail using asp.net I used the code like this using System.Web.Mail; MailMessage objmm = new MailMessage(); objmm.From = "anusha.dileep@gmail.com"; objmm.To = txtMailid.Text; objmm.Cc = txtMailid.Text; objmm.Subject = "My Web Ambitions"; objmm.BodyFormat = MailFormat.Text; objmm.Body = surl; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(objmm); Its not shoeing any error in code but the mail doesnot deliver hepl me pls
Did you configure your SMTP server[^]?
Regards, Arindam Sinha MyBlog - http://arindamsinha.wordpress.com/ Please give your feedback on this answer.
-
Hi Can any one tell me how to send a mail using asp.net I used the code like this using System.Web.Mail; MailMessage objmm = new MailMessage(); objmm.From = "anusha.dileep@gmail.com"; objmm.To = txtMailid.Text; objmm.Cc = txtMailid.Text; objmm.Subject = "My Web Ambitions"; objmm.BodyFormat = MailFormat.Text; objmm.Body = surl; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(objmm); Its not shoeing any error in code but the mail doesnot deliver hepl me pls
How can you send an e-mail from gmail and use smtp as your local machine? that is not correct. i have answered someone with a full working code here on CP. search for a post here on cp by me and you will find the answer.
Vuyiswa Maseko, Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers." C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.somee.com vuyiswa@its.co.za http://www.itsabacus.co.za/itsabacus/
-
Hi Can any one tell me how to send a mail using asp.net I used the code like this using System.Web.Mail; MailMessage objmm = new MailMessage(); objmm.From = "anusha.dileep@gmail.com"; objmm.To = txtMailid.Text; objmm.Cc = txtMailid.Text; objmm.Subject = "My Web Ambitions"; objmm.BodyFormat = MailFormat.Text; objmm.Body = surl; SmtpMail.SmtpServer = "localhost"; SmtpMail.Send(objmm); Its not shoeing any error in code but the mail doesnot deliver hepl me pls
4anusha4 wrote:
SmtpMail.SmtpServer = "localhost"; SmtpMail.Send
Did you configured your SMTP Server Properly. Does your SMTP is localhost ? I think, you need to configure the SMTP First. SMTP Server Setup IIS 6[^] If you want to use some other SMTP Server rather than own, then you have to speified that one.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article
-
4anusha4 wrote:
SmtpMail.SmtpServer = "localhost"; SmtpMail.Send
Did you configured your SMTP Server Properly. Does your SMTP is localhost ? I think, you need to configure the SMTP First. SMTP Server Setup IIS 6[^] If you want to use some other SMTP Server rather than own, then you have to speified that one.
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article