Article View: borland.public.cppbuilder.internet.socket
Article #2109Re: How to send an attachment to an e-mail
From: David Ayre
Date: Thu, 17 Aug 2006 09:15
Date: Thu, 17 Aug 2006 09:15
36 lines
2011 bytes
2011 bytes
I've included IdGlobal.hpp. IdSMTP.hpp was already included, but it still says that GetMimeTypeFromFile() is not declared. I have got attach->Filename in the brackets. Cheers, David "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote: > >"David Ayre" <davidcayre@ntlworld.com> wrote in message >news:44e2da4d$1@newsgroups.borland.com... > >> This line won't compile - GetMimeTypeFromFile() must need >> an #include. > >GetMimeTypeFromFile() is declared in the IdGlobal unit, which is already >included by TIdSMTP's unit. > >> The Indy help says that it is in global.pas. Do I need to include >> global.pas in my project > >No. > >> or just add an include for its header file? > >Just the header file - IdGlobal.hpp, which IdSMTP.hpp already includes. So >you should not have had a compiler error saying the function is unknown, >because it is a known function. > > >Gambit > >
Technical Details
Message-ID:
<44e433c8@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.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> <44e2da4d$1@newsgroups.borland.com> <44e34e4b$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> <44e2da4d$1@newsgroups.borland.com> <44e34e4b$1@newsgroups.borland.com> NNTP-Posting-Host: 207.105.83.66 Message-ID: <44e433c8@newsgroups.borland.com> Date: 17 Aug 2006 02:15:52 -0700 X-Trace: newsgroups.borland.com 1155806152 207.105.83.66 (17 Aug 2006 02:15:52 -0700) Lines: 37 Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.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