|
-
February 16th, 2006, 05:41 AM
#1
MAPI: MAPISendMail fails with MS Outlook 2000
Hi every buddy,
I am trying to send email programmatically. What I am trying is as follows:
STEPS:
------------
(1) LoadLibray("MAPI32.Dll") ;
(2) Check IsFileExists(Attachment), If true Go ahead ... else return false.
(3) Prepare message with subject, recipient, body and *Attachment*.
(4) MAPILogon() ;
(5) nReturnValue = MAPISendMail( PreparedMessage ) ;
(6) MAPILogoff() ;
(7) FreeLibrary() ;
When Tried with Outlook Express 5.0/6.0, Mozilla Thunderbird, Netscape etc. The program works simply superb.
The program fails on step 5, when tried with Microsoft Outlook 2000. The value of "nReturnValue" is MAPI_E_FAILURE and no mail is sent. GetLastError() returns 0.
No Clue other then this. It very unusual for me that Its working on a variety of mail clients but not on ONE. If it could work on Outlook Express 5.0/6.0 (Microsoft) and Netscape/Mozilla/Thunderbird (Non-Microsoft), then what could be wrong with Microsoft Outlook 2000.
Can some one helps ?
Thanks,
(*Vipul)() ; 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|