G Guest Dec 6, 2004 #1 How can I send email with data from a database field that contains formating? thanks, George
G Guest Dec 6, 2004 #2 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
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
G Guest Dec 6, 2004 #3 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?
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?