|I have come across the many forum and found there so many developers asked how to send email but the don’t have SMTP server. So just try to guide here, they can test their email functionality with the help of gmail account.
I would like to suggest here those guy who want to implement their email functionality in his project then for testing purpose they can use Gmail account.
MailMessage MyMailMessage=new MailMessage();
MyMailMessage.From = new MailAddress("email@example.com");
MyMailMessage.Subject = "Parwej Testing !!!";
MyMailMessage.Body = "This is the test text for Parwej Ahamad";
SmtpClient SMTPServer=new SmtpClient("smtp.gmail.com");
SMTPServer.Port = 587;
SMTPServer.Credentials =new System.Net.NetworkCredential("yourgmaid", "yourgmailpassword");
SMTPServer.EnableSsl = true;
If you have any issues with this code then you can drop me a mail on firstname.lastname@example.org