Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
7
Reply
How to send the Username and password Database To User mail
Venkata Subbareddy
May 28 2015 12:28 AM
451
Reply
Hi every one,
How To send The UserName And password values will be stored in database after the username and password goes though User mail Id Using asp.net.
Task:
student database stored in my database , when admin apporve the student, the student mail alredy stored my database so mail id pass the username and password in the Below my logic code where iam doing wrong let me know and suggestions...
if(chkStatus.Checked)
{
MailMessage mail = new MailMessage();
SmtpClient smtp = new SmtpClient();
mail.From = new MailAddress("EmailAddress");
smtp.Port =587;
smtp.Host = ("smtp.gmail.com"); //You can also use your SMTP Server Address here
smtp.UseDefaultCredentials = false;
mail.To.Add("
[email protected]
");
smtp.Credentials = new System.Net.NetworkCredential("
[email protected]
", "99665279"); //Or use your Smtp Email ID and Password if Host is not Gmail
smtp.EnableSsl = false;
smtp.Send(mail);
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
7
)
Next Recommended Forum
How to generate the Autounique id
How to sum of all months value ?