Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: Sending a formatted email?
| Subject: | Re: Sending a formatted email? |
| Posted by: | "Mike Williams (TeamB)" (mlwi!!ia..@gmail!.com) |
| Date: | 7 Nov 2007 12:02:15 |
Steve Maughan wrote:
> I've managed to get Indy to send plain text email. This was quite
> straight-forward. Is it possible to use Indy to send a formatted
> email e.g. HTML or rich text? It doesn't seem to be obvious.
Are you using the SMTP component? While I've never tried it with rich
text HTML *is* plain text, just with embedded formatting. The mail
client should be smart enough to recognize the HTML content and display
it properly.
Here's some exact code that I use:
EMailItem.Body.Text := PageProducer.Content;
--
-Mike (TeamB)