Article View: borland.public.cppbuilder.nativeapi
Article #12572Re: Running the email default program with ShellExecute
From: Giovanni Benintende
Date: Fri, 28 Nov 2003 05:42
Date: Fri, 28 Nov 2003 05:42
27 lines
1911 bytes
1911 bytes
I am sorry Bob, When I posted the question, I omitted the caption content because did'nt know the "mailto:" statement and the email address was'nt relevant for me. Giovanni "Bob Gonder" <notbg@notmindspring.invalid> ha scritto nel messaggio news:49ldsv0qojjsoua63ogkvssh85f7u9ku29@4ax.com... > Giovanni Benintende wrote: > > >I'm tryng to run Outlook Express or other default email program using ShellExecute, without success. > > > > ShellExecute(Handle, open, Label1->Caption.c_str(), 0, 0, SW_SHOWDEFAULT) > >where Label1->Caption is a current email address. > > You didn't show what Caption contained, so there's no way to know for > sure what's wrong with it. > > You could try something like this: > ShellExecute(Handle, "open","mailto:name@domain", 0, 0,SW_SHOWDEFAULT) > > Or you could go to MSDN at > http://msdn.microsoft.com/library/default.asp > and look up "Simple MAPI" > or the better MAPISendMail. > > >
Technical Details
Message-ID:
<3fc6e06f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fc6d044@newsgroups.borland.com> <49ldsv0qojjsoua63ogkvssh85f7u9ku29@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,3b8d3cd3765abba9 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-27 22:09:01 PST From: "Giovanni Benintende" <benint@gbsoft.it> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fc6d044@newsgroups.borland.com> <49ldsv0qojjsoua63ogkvssh85f7u9ku29@4ax.com> Subject: Re: Running the email default program with ShellExecute Date: Fri, 28 Nov 2003 06:42:52 +0100 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2727.1300 NNTP-Posting-Host: 82.84.36.6 Message-ID: <3fc6e06f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069998191 82.84.36.6 (27 Nov 2003 21:43:11 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail