Sending email

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I send email with data from a database field that contains formating?

thanks,

George
 
hi
you can use the mailmessage and smtpmail classes in the System.Web.Mail

MailMessage mailMsg = new MailMessage();
mailMsg .From = "(e-mail address removed)";
mailMsg .To = "(e-mail address removed)";
mailMsg .Cc = "(e-mail address removed)"";
mailMsg .Bcc = "(e-mail address removed)";
mailMsg .BodyFormat= MailFormat.Html;
mailMsg .Subject = "SubjectOfTheMailString";
mailMsg .Body = "BodyOfTheMailString from the database";
SmtpMail.Send(mailMsg );

hope this will help
regards
Ansil
Technopark Trivandrum
 
Thank you for your reply. This is the method that I am using but the
formating in the text is not rendered in the email. Why?
 
Back
Top