🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #1905

Re: TIdMessage text+(html+graphic)

#1905
From: Hans Galema
Date: Wed, 27 Sep 2006 10:18
54 lines
2808 bytes
Remy Lebeau (TeamB) wrote:
>>-text+(html+graphic) I cannot handle this like it should.
> 
> Indy 9 has never been able to support that particular format. 

But as said: It (mostly) sends a message that is interpreted
by thunderbird and OE as intended.

> .. or else
> upgrade to Indy 10.

As you will know that is currently not supported for C++Builder.
But following your advise I tried the IDE to grab Indy10
instead of Indy9 and did the following:

Menu Tools | Options | Environment Options | C++ Options | Paths and Directories
SearchPath (choose one):
$(BDS)\Include\Indy9;$(BDS)\Lib\Indy9
$(BDS)\Include\Indy10;$(BDS)\Lib\Indy10

Browsing Path(choose one):
$(BDS)\source\Win32\Indy9
$(BDS)\source\Indy10

But having applied these changes then from IdWinSock2.hpp
there is the warning:
//-- user supplied -----------------------------------------------------------
#error Indy 10 does not currently support C++Builder

Q.E.D.

>>As there are two Content-Type's I wonder how I should tell
>>that to TIdMessage.
>  
> The only way to do that with Indy 9 is to put the entire "multipart/reated"
> block into a text attachment.   You will not be able to create such a
> message using individual message parts alone.  For example:

OK. Thanks for the example.

> If Send() returns without throwing an exception, then the provider has
> accepted the message and is then responsible for delivering it.  There is
> nothing Indy can do to help the provider once Send() has been called.

OK. That is fair.

>  If
> the provider cannot deliver the message, then it will send an error email to
> the return address of the message explaining why the message could not be
> delivered.

But it does not here in the case I described.

Hans.
Technical Details
Message-ID: <451a5173$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4514ff01@newsgroups.borland.com> <45180efe@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,b4f28d34b773949b
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Wed, 27 Sep 2006 12:18:13 +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: TIdMessage text+(html+graphic)
References: <4514ff01@newsgroups.borland.com> <45180efe@newsgroups.borland.com>
In-Reply-To: <45180efe@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: <451a5173$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1159352691 145.98.201.248 (27 Sep 2006 03:24:51 -0700)
Lines: 54
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail