Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAILTO and MAPI
Message
De
16/07/2000 07:51:26
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Titre:
Divers
Thread ID:
00392739
Message ID:
00393002
Vues:
20
Dear Larry,

finally, after 2 days hard info searching and testing, I have found the answer.

The answer is rely on the differency of MAPI and Simple Mapi. Both messaging system is available in MAPI32.DLL.
Nigel's VCX use MSmapi32.ocx. (Actually Session and Message object.) MSmapi32.ocx uses Single MAPI to send, read, mails.
VFP system menu Send option use MAPI. Word and Excel Send menu option use Simple MAPI.

OLE messaging (Also known as CDO or Active Messaging) uses MAPI.
Why is it important?

Let's say you have a machine with a default Exchange client and an Outlook Express istalled. (Today I know, that I heard several times the Outlook Express is not MAPI compliant. Yes, It is true, but Outlook Express is SIMPLE MAPI compliant. And it registers itself for Windows Messaging system to handle all Simple MAPI call. But MAPI calls go to the MAPI compliant client, in this case the Exchange client. The default Exchange Cilent is MAPI and SIMPLE MAPI compliant. Itdoesnot matter which of them is set as default Email client.)
So, if you click on Send menu option in Word, Excel, then Outlook Express will appear on the screen.
If you click the Send menu option in VFP, the Exchange Client will start.

If only have only the default Exchange Client installed, there is no difference, because Exchange client will handle MAPI, as well as Simple MAPI calls.

Comment: Any version of Outlook is also MAPI and Simple MAPI compliant.
(Oulook and Outlook Express are two different animal.)
And here is the point:
If you have a machine that has Outlook installed, everything goes OK.
And if the users installs a new version of IE and, accidentally installs Outlook Express also, all SIMPLE MAPI calls will be handled by Outlook Express.
(And they usually camplain about it, that they use Outlook as Email client, not Outlook Express)
Of course, if somebody use the Outlook Express only, She-He will complain about if Exchage Client try to handle a mail sending. (Because, probably that client is not configured at all. I am such a user)

So, choose carefully which messaging option you use.

bb




>I believe OE is MAPI compliant. Check out Nigel Coates's MAPI class here in the Files section. You should be able to add attachments with it.
>
>>Dear All,
>>
>>I have a NT4 with default exchange client installed and an Outlook Express 5 installed. Oe is set as default mail client.
>>
>>If I use MailTo: with ShellExecute (e.g. in a test vfp program) a new OE message brings up.
>>
>>OK, so far so good. But...
>>
>>If I click VFP Send button, a new Exchange client message is brings up. (Ok it is normal, because it is MAPI compliant)
>>
>>And now, the point!
>>If I click on Word, Excel or NT Explorer Send button and select Mail... a new OE message brings up with an attachement. (The current file)
>>
>>But, as far as I know: Outlook Express 5 is not MAPI compliant. Then, Word or Excel how can it use? I thought that they use it via ShellExecute. But then, How they add an attachment programatically. AsI know, ShellExecute doesnot support to specify an attachment.
>>
>>Any comment will be appreciated!
>>
>>bb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform