Article View: borland.public.cppbuilder.internet.socket
Article #4422Re: TIdMessage and Indy9
From: Frank Gruber
Date: Mon, 28 Feb 2005 21:04
Date: Mon, 28 Feb 2005 21:04
25 lines
2271 bytes
2271 bytes
Remy Lebeau (TeamB) schrieb: > "Frank Gruber" <ZJQBBYSESPEZ@spammotel.com> wrote in message > news:42237f3c$1@newsgroups.borland.com... > >>BTW. Do you know why TIdMessage::SaveToFile does not >>save the contens of a TIdText::Body if you have a multipart >>message containing one TIdText and one TIdAttachment >>(the message part is generated but the text is omitted)? > > Historically, Indy has always required at least 2 TIdText instances. Email > commonly includes at least 2 text parts when sending formatted content - one > for plain-text and one+ for the formatting. If you are going to send only > one text part, then use the TIdMessage.Body property instead of a TIdText. That's the way I do it now. However then you have to do quoted-printable manually (as you pointed out in your previous post) whereas it is done automaticall if you use TIdText. It is sometimes quite difficult to foresee what Indy will do on implicit processing if message parts are involved. It seems the whole handling of multipart messages is getting much clearer with Indy 10 but seems not to be an option with BCB for now. Again thank's for your help. Frank.
Technical Details
Message-ID:
<4223869e@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<4223331f@newsgroups.borland.com> <422359d7$2@newsgroups.borland.com> <42237207@newsgroups.borland.com> <42237793$1@newsgroups.borland.com> <42237f3c$1@newsgroups.borland.com> <42238178$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,9359cdf49db4e432 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 28 Feb 2005 22:04:52 +0100 From: Frank Gruber <ZJQBBYSESPEZ@spammotel.com> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: TIdMessage and Indy9 References: <4223331f@newsgroups.borland.com> <422359d7$2@newsgroups.borland.com> <42237207@newsgroups.borland.com> <42237793$1@newsgroups.borland.com> <42237f3c$1@newsgroups.borland.com> <42238178$1@newsgroups.borland.com> In-Reply-To: <42238178$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 217.245.18.47 Message-ID: <4223869e@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1109624478 217.245.18.47 (28 Feb 2005 13:01:18 -0800) Lines: 25 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail