Article View: borland.public.cppbuilder.nativeapi
Article #13681Re: Send a mail with attachment
From: Remy Lebeau (TeamB)
Date: Sun, 28 Sep 2003 00:54
Date: Sun, 28 Sep 2003 00:54
26 lines
2038 bytes
2038 bytes
"Rodolfo Frino" <rodolfofrino@yahoo.com> wrote in message news:3f7545de@newsgroups.borland.com... > I don't recommend ShellExecute. ShellExecute has a limit of 2 MB per e-mail That's assuming calling the "mailto" protocol invokes a mail client that supports attachments via "mailto" to begin with. Not all do, and using "mailto", you have no control over which email program is actually invoked. > If you want e-mails bigger than 32 MB, have a look here > > http://www.geocities.com/rodolfofrino/OutlookExpressAuto.html That is OE-specific. If the user is not using OE, that that code is pretty useless unless it is adjusted for the actual email client being used, but then you have to write code for each specific email client that you want to support. SimpleMapi/MAPI is the best way to go. It is standard, supported by many email clients, and you don't have to hanve any knowledge of the particular email client, just construct the message and then pass to to MapiSendMail() to have the email client send it appropriately. Gambit
Technical Details
Message-ID:
<3f763170$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f70794d@newsgroups.borland.com> <3f7545de@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,23d9e1242f297072 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-09-27 18:09:57 PST From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f70794d@newsgroups.borland.com> <3f7545de@newsgroups.borland.com> Subject: Re: Send a mail with attachment Date: Sat, 27 Sep 2003 17:54:46 -0700 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.23.78.204 Message-ID: <3f763170$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1064710512 67.23.78.204 (27 Sep 2003 17:55:12 -0700) Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail