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);
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);

Bikesh SrivastavaRank #108 · 20.3K reputationPosted Jul 19, 2016, 10:30 PM EDT
Sameer KhanRank #8,108 · 228 reputationPosted Jul 19, 2016, 10:43 PM EDT
Vishal Singh12 reputationPosted Jul 19, 2016, 10:46 PM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Jul 19, 2016, 11:02 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Jul 20, 2016, 2:03 AM EDT
Sameer KhanRank #8,108 · 228 reputationPosted Jul 20, 2016, 2:35 AM EDT
Vinay SinghRank #604 · 4K reputationPosted Jul 20, 2016, 2:47 AM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Jul 20, 2016, 3:15 AM EDT