[AccessD] ShellExecute to send short e-mail vianon-MSemailclients...

Shamil Salakhetdinov shamil at users.mns.ru
Fri Nov 4 07:54:22 CST 2005


> Take a look at http://www.a1vbcode.com/snippet-270.asp
Stuart,

It would have been great but it(api_SendMail) didn't work with Outlook
Express on my PC resulting in a message:

Microsoft Office Outlook.
=========================
Either there is no default mail client or the current mail client cannot
fullfill the messaging request. Please run Microsoft Office Outlook and set
it as the default mail client.

What is also bad news this message above comes somewhere out of MS
Windows(MAPI32.dll probably) and can't be suppressed....

Tested on another PC - the same result.

On both PCs mailto protocol works just fine.

When tested your sample, which forces to use Outlook(olk_SendMail) it
resulted in an annoying message:

<<
A program is trying to automatically send e-mail on your behalf. Do you want
to allow this?
If this is unexpected, it may be a virus and you should choose "No".
>>

Yes, I know it can be suppressed but what I'm looking for is just a simple
method to prepare a message, pop it up for users to click [Send] button or
cancel...

<<<
It works fine with Pegasus   Mail, Eudora etc.
>>>
Do you mean you api_SendMail code? - it failes here for Outlook Express :(

Shamil

----- Original Message ----- 
From: "Stuart McLachlan" <stuart at lexacorp.com.pg>
To: "Access Developers discussion and problem solving"
<accessd at databaseadvisors.com>
Sent: Friday, November 04, 2005 9:54 AM
Subject: Re: [AccessD] ShellExecute to send short e-mail
vianon-MSemailclients...


> On 4 Nov 2005 at 8:16, Shamil Salakhetdinov wrote:
>
> > Stuart,
> >
> > I'd not argue but this question about using different e-mail clients
under
> > MS Windows, which IMO should have simple effective solution, looks still
> > unclear here.
> > Do you have a generic sample to work with any e-mail client via MAPI?
>
> Take a look at http://www.a1vbcode.com/snippet-270.asp
> Note that the Logon and Logoff are not needed for most emali clients'
> Outlook is about the only time you need these functions.
>
>
> > Do you know how MAPI can be used with non-MS e-mail clients ?
>
> Yes, take a look at MAPISend on my website. It's a small application I
> wrote in PowerBASIC specifically to do this.  It works fine with Pegasus
> Mail, Eudora etc.
> ....
>
> > This means that e-mail client software should support specific
> > MAPI-compliant protocols - are you saying that all modern e-mail clients
> > running on MS Windows are supporting this MAPI-compliant protocol?
>
> Every decent email client that I am aware of is MAPI compliant. If they
are
> not, they won't be much use in Windows. Things such as Winzip's "Zip and
> Email", WInRAR's "Compress and email", Acrobat's "Convert to PDF and
email"
> functions all  use Simple MAPI for the latter action so any non-MAPI
> compliant emailer won't work with these sorts of utilities.
>
> -- 
> Stuart
>
>
> -- 
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com




More information about the AccessD mailing list