Good morning,
In this post, I want to show a simple code that demonstrate how to send a email in ASP.NET application via a GMail account.
Now, open Visual Studio 2005/2008 and create new ASP.NET project.
Declare this assembly below:
using System.Net;
using System.Net.Mail;
Use this function, modify if needed
public static bool SendMail(string to)
{
MailMessage mail = new MailMessage();
mail.To.Add(to);
mail.Bcc.Add(n...