Sameer Khan

Sameer Khan

  • NA
  • 272
  • 39.7k

Confirmation Email

Jul 20 2016 2:27 AM
I just want a confirmation Email on Click of a Registeration form on my email id that this particular UserName, MobileNo, Age has Register on my Website
 
I have tried this one and got error that Failure sending Email
 
SmtpClient client = new SmtpClient();
client.Host = "smtp.googlemail.com";
client.Port = 587;
client.UseDefaultCredentials = false;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.EnableSsl = true;
client.Credentials = new NetworkCredential("[email protected]", "password");
client.Send(Message);
 

Answers (8)