Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Emails from VFP7
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00708047
Message ID:
00708088
Views:
11
Marcia, thanks for your reply.

It would seem to me that going the MAPI route seems to be the mosy straightforward as most users will have either Outlook or Outlook express.

How do I use MAPI ... are there any samples around that I could have a look at.

Regards,

Gerard





>Hi Gerard.
>
>Is there a way to send emails within VFP 7 which will not be dependant on the end user having particular software loaded . I would like to be able to distribute the app and have everything in the app necessary for sending the email.
>
>As Eugenio said, if you can be sure that the machines will all have a MAPI compliant e-mail client installed, you can use this. Note that not all e-mail clients are MAPI compliant, but most of them are. Outlook, Outlook Express, Groupwise, and Eudora are all examples of MAPI compliant e-mail clients. On the other hand, Lotus CC:Mail is not.
>
>Alternatively, you may use CDO for Windows 2000 or later. To send messages, you must have network or local access to an SMTP service. You must also have CdoSys.dll (or CdoEx.dll) and Microsoft ActiveX® Data Objects (ADO) 2.5, or later, installed.
>
>You must instantiate two objects to send mail using CDO: CDO.Configuration and CDO.Message. The CDO.Configuration object defines how messages are transmitted. If you do not have the Simple Mail Transport Protocol (SMTP) service installed locally, the message must be configured to use an SMTP service on the network. The CDO.Configuration object is loaded with the default configuration information. The exact values depend on the software that is installed on the local machine, but it includes, among others, the following items:
>
>Name of the SMTP server on the network
>SMTP server port
>SMTP account name
>Sender e-mail address
>Sender user name for the SMTP server
>Sender password for the SMTP server
>
>The easy way to make sure that the CDO.Configuration object gets loaded with the required information is to install Outlook Express and configure it as an e-mail client, even if you never use it. Otherwise, you need to store the information somewhere and configure this object manually.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform