🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: activatet the default E-mail program

#16949
From: Rob Van Zant
Date: Wed, 16 Apr 2003 12:29
20 lines
1409 bytes
"guba" <admin@coka.co.yu> wrote in message
news:3e9d1b99@newsgroups.borland.com...
> BCB5 , Win98
> How can I activatet the default E-mail program (for example Outlook
Express)
> with an E-mail adress.

Try this:

ShellExecute(0, "open", "mailto:address@domain.com", "", "", SW_SHOWNORMAL);

or

int result = (int)ShellExecute(0, "open", "mailto:address@domain.com", "",
"", SW_SHOWNORMAL);
if (result <=32)
   ShowMessage("Unable to start mail client.");

HTH,
Rob
Technical Details
Message-ID: <3e9d4c9b$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e9d1b99@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,3dba4825adf65740
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-16 05:36:06 PST
From: "Rob Van Zant" <robslists@NOSPAMrumbayly.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e9d1b99@newsgroups.borland.com>
Subject: Re: activatet the default E-mail program 
Date: Wed, 16 Apr 2003 08:29:16 -0400
Lines: 22
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 64.45.143.248
Message-ID: <3e9d4c9b$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050496155 64.45.143.248 (16 Apr 2003 05:29:15 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail