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