Hi,
Im using ASP.net Login controls to allow users to Register on my website. I want an Email to be sent to the site Administrator everytime a new user registers, how do I achieve this?
Thanx
matale
3
Light Poster
Recommended Answers
Jump to Postvoid SendMailToStudent() { MailMessage stdmsg = new MailMessage("from@co.org", "to@co.org"); SmtpClient smtp = new SmtpClient(); stdmsg.Subject = "Acknowledgement for Student Application"; stdmsg.IsBodyHtml = true; stdmsg.Body = ""; stdmsg.Priority = MailPriority.High; smtp.Host = "localhost"; // StdMsg.Subject = "Acknowledgement for Student Application"; //stdmsg.IsBodyHtml = true; try { smtp.Send(stdmsg); } catch …
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.