//Name Space: using System.Web.Mail; //Btn click: MailMessage mail = new MailMessage(); mail.To = "user@gmail.com"; mail.From = "admin@admin.com"; mail.Subject = "Confirmation"; mail.Body = "Acoount confirmed...................."; SmtpMail.SmtpServer = "1:1:2:1"; try { SmtpMail.Send(mail); Response.Write("Mail send successfully"); } catch (Exception ex) { Response.Write("sending failure: "+ex.Message); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)