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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Shweta LodhaRank #31 · 39.8K reputationPosted Feb 7, 2014, 10:40 AM EST
louis TundeRank #6,843 · 255 reputationPosted Feb 7, 2014, 11:11 AM EST
Shweta LodhaRank #31 · 39.8K reputationPosted Feb 7, 2014, 11:17 AM EST
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);