Article View: borland.public.cppbuilder.internet.socket
Article #1880Re: TIdAttachment Problem with MIME Encoding
From: Hans Galema
Date: Fri, 22 Sep 2006 22:17
Date: Fri, 22 Sep 2006 22:17
20 lines
1528 bytes
1528 bytes
Remy Lebeau (TeamB) wrote:
> Because you are using the MessageParts collection, you should be storing the
> message text into the collection as well, not in the TIdMessage::Body.
> Try this code instead:
> TIdText *text1 = new TIdText(IdMessage1->MessageParts, NULL);
> text1->Body->Add("Some text...");
> text1->ContentType = "text/plain";
That does not work here with Turbo C++ Indy9. No text sent.
I had to change that to:
IdMessage1->Body->Text = "Some Text ...";
Before it was sent.
Hans.
Technical Details
Message-ID:
<45146284$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45112258$1@newsgroups.borland.com> <45117004$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,edd2a3551c00f96a X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 23 Sep 2006 00:17:33 +0200 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: TIdAttachment Problem with MIME Encoding References: <45112258$1@newsgroups.borland.com> <45117004$1@newsgroups.borland.com> In-Reply-To: <45117004$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <45146284$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158963844 145.98.201.248 (22 Sep 2006 15:24:04 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail