Hi Every one ,
i developed one school mangement System here i have small Doubt let me know where i doning mistake...
step 1:
student register our site so the values stored database after the database maintaince Admin
step:2
when Admin Approve the new Student the user mail id goes to username And Password...in the below my code
note: Admin Apporved by using Cheeckbox in itemtemplte..
if (chkStatus.Checked)
{
MailMessage mail = new MailMessage();
SmtpClient smtp = new SmtpClient();
mail.From = new MailAddress("[email protected]");
mail.Body+= "[email protected]="+EmailAddress From +",Password="+password from NewStudentRegistrationForm +"";
mail.Body += "Please check below data
";
//mail.Body="[email protected]="+EmailAddress from +",password="+password from data base +"";
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]", "996179"); //Or use your Smtp Email ID and Password if Host is not Gmail
smtp.EnableSsl = true;
smtp.Send(mail);
{
MailMessage mail = new MailMessage();
SmtpClient smtp = new SmtpClient();
mail.From = new MailAddress("[email protected]");
mail.Body+= "[email protected]="+EmailAddress From +",Password="+password from NewStudentRegistrationForm +"";
mail.Body += "Please check below data
";
//mail.Body="[email protected]="+EmailAddress from +",password="+password from data base +"";
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]", "996179"); //Or use your Smtp Email ID and Password if Host is not Gmail
smtp.EnableSsl = true;
smtp.Send(mail);


Manoj BhoirRank #599 · 4K reputationPosted May 28, 2015, 9:10 PM EDT
{
Venkata SubbareddyRank #2,083 · 691 reputationPosted May 28, 2015, 9:33 PM EDT
Manoj BhoirRank #599 · 4K reputationPosted May 28, 2015, 10:03 PM EDT
Venkata SubbareddyRank #2,083 · 691 reputationPosted May 28, 2015, 10:16 PM EDT