Article View: borland.public.cppbuilder.internet.socket
Article #2104Re: How to send an attachment to an e-mail
From: David Ayre
Date: Wed, 16 Aug 2006 08:19
Date: Wed, 16 Aug 2006 08:19
16 lines
1301 bytes
1301 bytes
> TIdText *text = new TIdText(IdMessage1->MessageParts, NULL); > TIdAttachment *attach = new TIdAttachment(IdMessage1->MessageParts, >"c:\\some file.ext"); Thanks Remy, That makes it all clear. I assume that text and attach must be deteted at the end? Cheers, David
Technical Details
Message-ID:
<44e2d502$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.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:
<44e2059a$1@newsgroups.borland.com> <44e213f5$1@newsgroups.borland.com> <44e2178f$1@newsgroups.borland.com> <44e2793f$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f90837efd85511de X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "David Ayre" <davidcayre@ntlworld.com> Sender: "David Ayre" <davidcayre@ntlworld.com> Reply-To: "David Ayre" <davidcayre@ntlworld.com> Subject: Re: How to send an attachment to an e-mail Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 62.252.224.18 X-Forwarded-For: 81.96.132.239 References: <44e2059a$1@newsgroups.borland.com> <44e213f5$1@newsgroups.borland.com> <44e2178f$1@newsgroups.borland.com> <44e2793f$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <44e2d502$1@newsgroups.borland.com> Date: 16 Aug 2006 01:19:14 -0700 X-Trace: newsgroups.borland.com 1155716354 207.105.83.66 (16 Aug 2006 01:19:14 -0700) Lines: 16 Path: arc1-ca.pugleaf.net!g2news2.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