FWH MAIL - MAPI
Posted: Mon Dec 12, 2016 9:44 pm
I am able to use FWH MAIL / MAPI successfully with Outlook. Anytime I send an email in my application, it opens in Outlook and allows me to send it. I simply call this function within my program:
This is great for individual emails. However, I have a need to send out emails, using MAPI, unattended. I may be sending 30 emails, and I do not want them to display in Outlook and wait for a response. They just need to go out. Of course I can do this with SMTP, etc. but Outlook would be far more productive.
Is there a setting or code that can be used to simply have Outlook pass through the emails ?
Tim
- Code: Select all Expand view
FUNCTION SendMAPIMail2( MailTo, cSndFile, cText, cSubj )
// Send MAPI mail originates email to the MAPI client
// Updated: 8/2/2015 2:16:52 PM
LOCAL oMail
DEFINE MAIL oMail ;
SUBJECT cSubj ;
TEXT cText ;
FILES cSndFile, cSndFile ;
FROM USER ;
TO MailTo
ACTIVATE MAIL oMail
RETURN( .t. )
This is great for individual emails. However, I have a need to send out emails, using MAPI, unattended. I may be sending 30 emails, and I do not want them to display in Outlook and wait for a response. They just need to go out. Of course I can do this with SMTP, etc. but Outlook would be far more productive.
Is there a setting or code that can be used to simply have Outlook pass through the emails ?
Tim