🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to send an attachment to an e-mail

#2110
From: David Ayre
Date: Thu, 17 Aug 2006 15:40
46 lines
2129 bytes
Yes Roger,

Tried that and if I type in:-

GetMimeTypeFromFile(  I get a popup saying that there is no
prototype for this. That's what usually happens when I have
forgotten to include a header file.

I have found that if I use the line :-

attach->ContentType = "binary"; it works OK except that the 
text->Body->Text = acBody; doesn't put the body text in. I 
have to put it in the IdMessage->Body instead and then it
works.

Cheers,

David


"Roger" <aretae@magma.ca> wrote:
>Did you try:
>
>include "IDGLOBAL.hpp"
>
>
>
>"David Ayre" <davidcayre@ntlworld.com> wrote in message 
>news:44e2da4d$1@newsgroups.borland.com...
>>
>>
>>>    attach->ContentType = GetMimeTypeFromFile(attach->FileName);
>>>
>>
>> This line won't compile - GetMimeTypeFromFile() must need an
>> #include. The Indy help says that it is in global.pas. Do I need
>> to include global.pas in my project or just add an include for
>> its header file?
>>
>> Cheers,
>>
>> David
>> 
>
>
Technical Details
Message-ID: <44e48ddd$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <44e2059a$1@newsgroups.borland.com> <44e213f5$1@newsgroups.borland.com> <44e2178f$1@newsgroups.borland.com> <44e2793f$1@newsgroups.borland.com> <44e2da4d$1@newsgroups.borland.com> <44e34fc7@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> <44e2da4d$1@newsgroups.borland.com> <44e34fc7@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44e48ddd$1@newsgroups.borland.com>
Date: 17 Aug 2006 08:40:13 -0700
X-Trace: newsgroups.borland.com 1155829213 207.105.83.66 (17 Aug 2006 08:40:13 -0700)
Lines: 47
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail