Article View: borland.public.cppbuilder.internet.socket
Article #2108Re: How to send an attachment to an e-mail
From: Remy Lebeau (TeamB)
Date: Wed, 16 Aug 2006 16:55
Date: Wed, 16 Aug 2006 16:55
23 lines
1681 bytes
1681 bytes
"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:
<44e34e4b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.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>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,f90837efd85511de X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.internet.socket 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> Subject: Re: How to send an attachment to an e-mail Date: Wed, 16 Aug 2006 09:55:39 -0700 Lines: 25 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.69.17.41 Message-ID: <44e34e4b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1155747403 68.69.17.41 (16 Aug 2006 09:56:43 -0700) Path: arc1-ca.pugleaf.net!g2news2.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