You can use the below class to send the emails using asp.net form or any windows based .net applications. This implements the SMTP client to send email. public class MyOwnSMTP { public void SendMail(string From, string To, string Sub, string Body) { MailMessage Email = new MailMessage(From, To, Sub, Body); Email.IsBodyHtml = true; SmtpClient smtp …
Sending email using gmail SMTP server using .NET
If you do not have an SMTP server of your own, you can still send SMTP authenticated emails from your .net application. Just sign up for a brand new gmail account or use your exisiting gmail account. SmtpClient obj = new SmtpClient(“smtp.gmail.com”,465); //465 is the TCP port for sending emails using gmail. 465 is generally …


Recent Comments