please i need code that when a user register his username the generated password will be sent to the email provided in this format:
username = [email protected]
password= asdwwee
thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Shweta LodhaPosted Feb 7, 2014, 4:17 PM
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.To.Add("me@dummy.com");
message.Subject = "This is the Subject line";
message.From = new System.Net.Mail.MailAddress("my@dummy.com");
message.Body = "Change it as per your need and fomat";
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("yoursmtphost");
smtp.Send(message);
louis TundePosted Feb 7, 2014, 4:11 PM
Shweta LodhaPosted Feb 7, 2014, 3:40 PM