Article View: borland.public.cppbuilder.nativeapi
Article #12571Re: Running the email default program with ShellExecute
From: Bob Gonder
Date: Fri, 28 Nov 2003 05:24
Date: Fri, 28 Nov 2003 05:24
17 lines
1697 bytes
1697 bytes
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:
<49ldsv0qojjsoua63ogkvssh85f7u9ku29@4ax.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!nntp2.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3fc6d044@newsgroups.borland.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 21:34:26 PST From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Running the email default program with ShellExecute Date: Thu, 27 Nov 2003 21:24:57 -0800 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <49ldsv0qojjsoua63ogkvssh85f7u9ku29@4ax.com> References: <3fc6d044@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 209.178.183.214 X-Trace: newsgroups.borland.com 1069997101 209.178.183.214 (27 Nov 2003 21:25:01 -0700) Lines: 20 Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!small1.nntp.aus1.giganews.com!nntp2.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail