8
Answers

Confirmation Email

Sameer Khan

Sameer Khan

8y
290
1
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)