surinder singh


Hi All,

I want to know if there is any way to send email in foxpro through default email client installed on user's machine.

I am using MAPI currently to send emails.

Thanks





Re: How to send email by using default email client installed on user's machine

Stuart Dunkeld


You have a number of options - http://fox.wikis.com/wc.dll Wiki~AutomatedEmail~VFP probably lists them all. Also Craig Boyd has done some articles on the subject with much sample code, starting with http://www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,8f569366-c76a-4873-9029-f31c07cf125e.aspx

Regards





Re: How to send email by using default email client installed on user's machine


Re: How to send email by using default email client installed on user's machine

dni

To send a e-mail message with default e-mail client you may use ShellExecute(...):

ShellExecute(0,"open","mailto:test@test.com","","",1)

You need to declare as integer ShellExecute first:

DECLARE INTEGER ShellExecute IN shell32.dll INTEGER hnd, STRING Action, STRING FileName, ;
STRING Params, STRING Dir, INTEGER nShowWin

So , total 2 lines...




Re: How to send email by using default email client installed on user's machine

MarciaAkins

surinder singh wrote:

I want to know if there is any way to send email in foxpro through default email client installed on user's machine.

CDO for Windows 20000 and later is the best way to go. All you need is access to an SMTP server.

The easiest way to configure CDO is to configure Outlook Express. You do not ever need to use it, but if you configure it to send e-mail, CDO has the registry entries it needs so that you do not need to configure it explicitly.






Re: How to send email by using default email client installed on user's machine

surinder singh

Thanks a lot to all of you.

Thanks Again

With Warm Regards

Surinder singh