Article View: borland.public.cppbuilder.internet.socket
Article #5631Re: Attachments with TIdMessage
From: Remy Lebeau (TeamB)
Date: Sat, 26 Jun 2004 23:04
Date: Sat, 26 Jun 2004 23:04
17 lines
1334 bytes
1334 bytes
"Antonio Donato" <espvida@osite.com.br> wrote in message
news:40DDCFFC.539C4C06@osite.com.br...
> In the properties of Message there are Body, Subject,
> CCList and others, but no Attachment property.
You need to add a TIdAttachment instance to the MessageParts collection, ie:
TIdAttachment *attachment = new TIdAttachment(IdMessage1, "c:\\path
to\\file.ext");
attachment->FileName = "file.ext";
attachment->ContentType = "whatever";
// etc...
Gambit
Technical Details
Message-ID:
<40de01f4$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<40DDCFFC.539C4C06@osite.com.br>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5a2b0d594bbebb99 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.internet.socket References: <40DDCFFC.539C4C06@osite.com.br> Subject: Re: Attachments with TIdMessage Date: Sat, 26 Jun 2004 16:04:58 -0700 Lines: 19 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.169.168.124 Message-ID: <40de01f4$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1088291316 68.169.168.124 (26 Jun 2004 16:08:36 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail