Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Oct : Re: indy 10 message format probelm
| Subject: | Re: indy 10 message format probelm |
| Posted by: | "Remy Lebeau (TeamB)" (no.spam@no.spam.com) |
| Date: | Wed, 11 Oct 2006 00:24:21 |
"aslam" <aslamKhan24@gmail.com> wrote in message
news:1160542936.375552.226240@b28g2000cwb.googlegroups.com...
> What i want to do is that, i create a Tidmessage and filling some of its
> fields and then save it in database. And when i want to add an attachment
> to it, i load the message from database using loadfromstream(it is
actually
> a blob field in mysql), and simply create the message part as an
attachment
> for it. but the content type of the message still remains text/plain.
As it should be. TIdMessage in Indy 10 suppors more advanced message part
layouts than Indy 9 did. The ContentType property is not overwritten if it
already has a value assigned to it. You have to update it manually, based
on what you actually put into the message.
Gambit