Hello,
I want to send Email from my web site
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeesh MenothPosted Sep 1, 2015, 12:47 PM
DarinPosted Sep 1, 2015, 8:03 AM
Vinodh NarayananPosted Feb 2, 2015, 5:23 AM
MailMessage Msg = new MailMessage();
Msg.To.Add(TextBox1.Text);
Msg.From = new MailAddress("[email protected]");
Msg.Subject = "Forgot Password Information";
Msg.Body = "Username: " + ds.Tables[0].Rows[0]["UserName"] + "Password: " + ds.Tables[0].Rows[0]["Password"] + "";
Msg.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com";
smtp.Port = 587;
smtp.Credentials = new System.Net.NetworkCredential("your email id ", "your password");
smtp.EnableSsl = true;
smtp.Send(Msg);
Please mark if accepted answer
Munesh SharmaPosted Feb 2, 2015, 4:21 AM