TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Venkata Subbareddy
810
774
100k
How to send the Username and password Database To User mail
May 28 2015 12:28 AM
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);
Reply
Answers (
7
)
Microsoft's programming Languages
How to sum of all months value ?