0

using System.Web.Mail;
MailMessage mm = new MailMessage();
mm.To = "mymail@gmail.com";

mm.From = "mymail@gmail.com";
mm.Subject = uxSubjectText.Text;
string MESSAGE2 = "<html><body><div><table><tr><td>hiiiii</td></tr></table></div></body></html>"
mm.Body = MESSAGE2;
mm.BodyFormat = MailFormat.Html;


mm.Priority = MailPriority.High;

SmtpMail.SmtpServer = "smtp.gmail.com";

mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1");
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "maymail@gmail.com");
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "password");
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport", "465");
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "true");
SmtpMail.Send(mm);


plz solve this problem

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by reach_yousuf
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.