Posted on: 11/22/2012 4:44:48 AM | Views : 349

Hello Experts, I am using SMTP server for Email Operation so i want to send mail without password. It is working with Password. How to do it. Please Suggest.
Here i am pasting my code
MailMessage loginInfo = new MailMessage(); loginInfo.To.Add(username1); loginInfo.From = new MailAddress("agrawalakash2404@gmail.com"); loginInfo.Subject = "Forgot Password Information"; loginInfo.Body = "Username: " + Registration1.DesiredUserName + "Password: " + username + ""; loginInfo.IsBodyHtml = true; SmtpClient smtp = new SmtpClient(); smtp.Host = "smtp.gmail.com"; smtp.Port = 587; smtp.EnableSsl = true; smtp.Credentials = new System.Net.NetworkCredential("agrawalakash2404@gmail.com", ""); smtp.Send(loginInfo); //lblMessage.Text = "Password is sent to you email id,you can now Login"; _result = "Password ...

Go to the complete details ...