🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #13607

Re: Send a mail with attachment

#13607
From: Francesco
Date: Mon, 29 Sep 2003 15:05
21 lines
1354 bytes
Nicola wrote:

> Hi,
> 
> how can I send a mail with default mail program (usually Outlook
> Express) with an attachment??
> 
> I know that should be the way:
> 
> ShellExecute(Handle,
>              "open",
>              "mailto:address@mail.com",
>               NULL,NULL,SW_SHOWDEFAULT);
> 
> but what about the attachment??
> 
> thanks in advance

I solved my problem using MapiSendMail(); not so complicate as I
thought    and works fine, anyway thanks to everybody Rodolfo, Ed and
Remy.
Technical Details
Message-ID: <3f784a32@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.osn.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f70794d@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-29 08:12:05 PST
From: "Francesco" <nomail@mail.ru>
Subject: Re: Send a mail with attachment
Newsgroups: borland.public.cppbuilder.nativeapi
References:  <3f70794d@newsgroups.borland.com>
User-Agent: XanaNews/1.15.7.2
NNTP-Posting-Host: 217.172.212.72
Message-ID: <3f784a32@newsgroups.borland.com>
Date: 29 Sep 2003 08:05:22 -0700
X-Trace: newsgroups.borland.com 1064847922 217.172.212.72 (29 Sep 2003 08:05:22 -0700)
Lines: 25
Path: arc1-ca.pugleaf.net!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news.osn.de!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail