Here the C# code (.NET 1.1):
MailMessage msg = new MailMessage();
msg.From = sender;
msg.To = recipient;
msg.Headers.Add("Reply-To", _XMLHandler.getEmailData.sender);
// convert rtf 2 html and attach it as body to the mail and beautify it
string html = rtf2html.BeautifyHTML(rtf2html.ConvertRtf2Html(bod yFile),
_TDWidth);
msg.BodyFormat = MailFormat.Html;
msg.Body = html;
// attach enclosures
AttachEnclosuresToMail(msg);
// send mail
SmtpMail.Send(msg);
I convert a RTF document to a HTML document and add the result to the
msg.Body.
Thanks
Thomas Heiz
----- Original Message -----
From: "Lars-Inge Tønnessen (VJ# MVP)" <http://emailme.larsinge.com>
Newsgroups: microsoft.public.dotnet.languages.csharp
Sent: Monday, March 20, 2006 10:57 PM
Subject: Re: HTML Email
I would like to see some sample code.
We can not tell anything if we don't see the code.
Regards,
Lars-Inge Tønnessen
Siemens Medical - Norway