Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Nov : Re: Sending a formatted email?
| Subject: | Re: Sending a formatted email? |
| Posted by: | "Steve Maughan" (google..@www.com) |
| Date: | Wed, 7 Nov 2007 15:16:04 |
Mike,
OK - I'll give it a go!
Thanks,
Steve Maughan
"Mike Williams (TeamB)" <mlwi!!iams@gmail!.com> wrote in message
news:xn0fdf0ay0000001@newsgroups.borland.com...
> 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)
none