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);
{
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);


Rajeesh MenothRank #118 · 18.4K reputationPosted May 27, 2015, 8:47 PM EDT
Manoj BhoirRank #599 · 4K reputationPosted May 27, 2015, 9:14 PM EDT
Venkata SubbareddyRank #2,083 · 691 reputationPosted May 27, 2015, 11:34 PM EDT
Sanjeeb LenkaRank #301 · 8.3K reputationPosted May 27, 2015, 11:46 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted May 27, 2015, 11:52 PM EDT
Venkata SubbareddyRank #2,083 · 691 reputationPosted May 28, 2015, 12:01 AM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted May 28, 2015, 12:44 AM EDT