🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: MapiSendMail question

#15390
From: Bob Gonder
Date: Tue, 08 Jul 2003 21:26
24 lines
2102 bytes
"Dennis Jones"  wrote:

>I've checked the newsgroup archives, and this question has been asked
>several times, in different ways, on several different newsgroups, over a
>period of several years, but in all that time, it has never been answered.

I'm guessing it's because the answer is NO.

>When a call is made to MapiSendMail() and the user's default mail client is
>Outlook Express, and it is configured to "Warn me if other applications try
>to send mail as me", a dialog appears warning the user that a program is
>attempting to send email on his behalf.  If the user clicks the "Do Not
>Send" button, the email is not sent, but MapiSendMail() returns
>SUCCESS_SUCCESS (0).
>
>Is there any way to know if the user clicked "Do Not Send", or to verify
>that the email was actually sent by MapiSendMail()?

I doubt it.
If you want (need) control, use SMTP.
I found a good implementation of SMTP by Randy Charles Morin.
Search Google for it.
// smtp.cpp: implementation of the Smtp class.
// Copyright 2000 by Randy Charles Morin
Technical Details
Message-ID: <vbdmgv8irnhedthvmckcr96quijsl267q8@4ax.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!In.nntp.be!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3f0b0759$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4247ee3f5345fa1f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-07-08 14:35:30 PST
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: MapiSendMail question
Date: Tue, 08 Jul 2003 14:26:20 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <vbdmgv8irnhedthvmckcr96quijsl267q8@4ax.com>
References: <3f0b0759$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.91/32.564
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.31.165.235
X-Trace: newsgroups.borland.com 1057699558 67.31.165.235 (8 Jul 2003 14:25:58 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!In.nntp.be!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail