Article View: borland.public.cppbuilder.internet.socket
Article #1970Re: TIdAttachment Problem with MIME Encoding
From: Hans Galema
Date: Fri, 22 Sep 2006 14:27
Date: Fri, 22 Sep 2006 14:27
45 lines
2406 bytes
2406 bytes
Remy Lebeau (TeamB) wrote:
> The ContentType alone has no effect whatsoever on Indy's encoders. They
> don't care about the ContentType at all. The value is written to the header
> inside the message data and then ignored for everything else.
You mean the ContentType of TIdMessage here? (As every TIdText has its
own ContentType).
I can not confirm that.
Whatever I put as type Indy will neglect it and determine the type itself.
What I think is a good idea, because why should the use bother with a type?
So I do not put a value in.
I do not put in values for encoding either and was able
to send mails of the following types:
-text only
-text+html
-text+attachments
-text+html+attachments
-text+(html+graphic)
-text+(html+graphic)+attachments
For the latter: If I compose such an email with thunderbird i get:
Content-Type: multipart/mixed;
boundary="------------050109080305000709040803"
With Indy:
Content-Type: multipart/related; type="multipart/alternative";
boundary="=_MoreStuf_...
And the structure of the mail is diferent.
The nice thing is that thunderbird. and also OE displaying
the eml, don't care.
It seems that they just look at 'Content-ID' and theron
promote an attachment to inlinegraphic.
Hans.
Hans.
Technical Details
Message-ID:
<4513f45e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.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-mailReferences:
<45112258$1@newsgroups.borland.com> <45117004$1@newsgroups.borland.com> <45118fd7$1@newsgroups.borland.com> <4511bc98$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: Fri, 22 Sep 2006 16:27:34 +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> <45118fd7$1@newsgroups.borland.com> <4511bc98$1@newsgroups.borland.com> In-Reply-To: <4511bc98$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: <4513f45e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158935646 145.98.201.248 (22 Sep 2006 07:34:06 -0700) Lines: 45 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.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