Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending mail from VFP

Status
Not open for further replies.

Bryan - Gendev

Programmer
Jan 9, 2011
408
AU
I note faq184-3894 using Outlook automation.

Is it possible to use Windows Mail or Thunderbird to send an email to an address held in a table using similar programming?

Thanks

GenDev
 
No, such mail clients have no automation interface, just MAPI.

Why bother? You have many other options, you don't even need a mail program installed to send mail, internet connection and the knowledge of an SMTP Server and login credentials of a mail account in it is enough.


If you want the mails you send to use the configuration of a mail client and let your sent item appear in their sent items bo, then the generally supported programming interface is MAPI, the wiki decribes this here:


And Craig Boyd here:

Bye, Olaf.
 
Just one note about MAPI: While any mail client supports that interface (even the full blown outlook can alternativly be adressed through MAPI instead of direct automation), the base DLLs to adress MAPI from any programming language are NOT installed by default.

In someone asked how to check, if MAPI would work. Don't check, just make sure you inclue a MAPI setup in your applications setup. The problem with this is, you don't find a mapi redistribution or sdk anymore. Even not in the form of Extended MAPI. Maybe someone else can add a pointer to the one or the other.

So if you don't care to use the mail software and it's default mail account as sender, rather use a simple self contained DLL like BLAT, it does the SMPT protocol stuf for you. Or use FRancis Faures VFPwinsock:
Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top