Article View: borland.public.cppbuilder.internet.socket
Article #1960Re: TIdAttachment Problem with MIME Encoding
From: Robert Lieblich
Date: Wed, 20 Sep 2006 19:00
Date: Wed, 20 Sep 2006 19:00
42 lines
2334 bytes
2334 bytes
Hello Remy,
this is the (faulty) test-attachment (the correct end would be: ..Ende!):
TESTMAIL
testmail attachment
���___�___���
<><><>1234567890
Ende! �y+l�]�ƾz�wj�
The ���.. in the middle are the German "Umlaute".
I figured something out. Your example works, because
you use:
attach1->ContentType = "text/plain";
With attach1->ContentType = "multipart/application";
or "multipart/mixed"
you get the "additional bytes problem" with the .txt-file and
with other, e.g. .pdf-files.
It looks as the problem is caused by the "multipart" phrase.
Even when you use "mime/image" or "mim/image" or just "image" it'ok...
I have not tried "attach1->ContentType = "text/plain"; " before,
because i wanted to attach also binary files (attachment.txt was just one example), but surprisingly these work also with
"text/plain" .
What would be the CORRECT ContentType for binary attachments?
Thank you for your valuable tips, also the free .. delete subject.
Everything would be much easier for the C++ users
like me if there were a few short examples of these components.
If there is something to find in the documentation, ist a
listing of classes, methods, functions and properties, but the more conceptual overview of HOW to use a special component is missing.
Regards Robert
Technical Details
Message-ID:
<45118fd7$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.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>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,edd2a3551c00f96a X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII From: "Robert Lieblich" <nospam@nospam.com> Sender: "Robert Lieblich" <nospam@nospam.com> Reply-To: "Robert Lieblich" <nospam@nospam.com> Subject: Re: TIdAttachment Problem with MIME Encoding Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 145.253.232.148 X-Forwarded-For: unknown References: <45112258$1@newsgroups.borland.com> <45117004$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <45118fd7$1@newsgroups.borland.com> Date: 20 Sep 2006 12:00:39 -0700 X-Trace: newsgroups.borland.com 1158778839 207.105.83.66 (20 Sep 2006 12:00:39 -0700) Lines: 44 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.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