Send Email in Asp.net
Write complete program of Asp.net Through which you can send email on gmail account.
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Sukesh MarlaRank #461 · 5.4K reputationPosted Sep 13, 2012, 10:38 AM EDT
http://www.codeproject.com/Articles/12511/Send-Email-in-ASP-Net-2-0-Feed-back-Form
Check this is correct answer if it helped.
Pradip PandeyRank #452 · 5.6K reputationPosted Sep 13, 2012, 7:05 PM EDT
http://www.c-sharpcorner.com/uploadfile/prathore/sending-email-in-Asp-Net-2-0/
http://www.c-sharpcorner.com/uploadfile/anjudidi/email-sending-in-Asp-Net-2-0/
Hope it will help.
Rewant ChoudharyRank #4,270 · 354 reputationPosted Sep 15, 2012, 2:39 AM EDT
mail.Bcc.Add("[email protected]");
mail.From = new MailAddress("[email protected]", "WebAccouting");
mail.Subject = "Feedback...!!!";
mail.Body = "body";
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com"; //Or Your SMTP Server Address
smtp.Credentials = new System.Net.NetworkCredential("GmailID", "password");
smtp.Port = 587;
smtp.EnableSsl = true;
smtp.Send(mail);