Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Mar : Re: HTML and indy 9

www.cryer.info
Managed Newsgroup Archive

Re: HTML and indy 9

Subject:Re: HTML and indy 9
Posted by:"Remy Lebeau (TeamB)" (no.spam@no.spam.com)
Date:Thu, 22 Mar 2007 14:57:30

"Claude" <aorangi&@wanadoo.fr> wrote in message
news:4602ea80$1@newsgroups.borland.com...

> So! This is what I wrote and I did try but I get only
> a line on the top and then my image but the body is lost on the way.

That is because you are still not setting it up correctly.  You did
not read the article I pointed you to very carefully.

> IdMessage1.ContentType:='multipart/mixed;type=text/html';

That is wrong.  The 'type' attribute is only used with
'multipart/related', never with 'multipart/mixed'.  If all you are
adding is one HTML part and image attachments, then you need to use
'multipart/related' instead, ie:

    IdMessage1.ContentType := 'multipart/related; type="text/html"';

ContentID has no meaning outside of a 'multipart/related' grouping.


Gambit

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive