Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
jest show the code, how to send email using asp.net.
Posted
Comments
raju melveetilpurayil 17-Mar-11 10:29am    
before post question,please try with google ..

Asked and answered a million times here. Use search to find one of them.
 
Share this answer
 
Comments
raju melveetilpurayil 17-Mar-11 10:28am    
yaa, right ;)
jest show the code,
That was too rude.

Please go through the Microsoft Video tutorial and try by yourself:
Use ASP.NET to send Email from Website[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 17-Mar-11 23:51pm    
Good note and the reference, a 5.
--SA
Sandeep Mewara 18-Mar-11 1:25am    
Thanks SA.
Espen Harlinn 18-Mar-11 5:04am    
Nice reply, my 5 :)
Please check the following for step by step info:
http://www.dotnetcurry.com/ShowArticle.aspx?ID=65[^]

MailMessage message = new MailMessage();
message.From = new MailAddress("sender@foo.bar.com");
 
message.To.Add(new MailAddress("recipient1@foo.bar.com"));
message.To.Add(new MailAddress("recipient2@foo.bar.com"));
message.To.Add(new MailAddress("recipient3@foo.bar.com"));
 
message.CC.Add(new MailAddress("carboncopy@foo.bar.com"));
message.Subject = "This is my subject";
message.Body = "This is the content";
 
SmtpClient client = new SmtpClient();
client.Send(message);

http://weblogs.asp.net/scottgu/archive/2005/12/10/432854.aspx[^]
 
Share this answer
 
Hope this[^] might help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900