Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to send mail with VFP
Message
From
24/09/2002 08:09:18
 
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00703516
Message ID:
00703702
Views:
19
Hi Evan.

If your clients are running NT with Option Pack for or Win2000 or higher, you can use Collaborative Data Objects (CDO). Here is some code that use to send our the monthly email reminder to our user group.

I like CDO too. Unfortunately, without Outlook Express installed or IIS insalled and configured, you still have to manually configure the configuration object in order to send the e-mail and you forgot to mention that < s >. My CDO wrapper class has code like this:
WITH This
  *** create configuration and message objects
  .oConfig = CREATEOBJECT( 'CDO.Configuration' )
  IF TYPE( 'This.oConfig' ) = 'O'
    *** Check to see if we have configuration infomation
    IF NOT EMPTY( NVL( .oConfig.Fields( "http://schemas.microsoft.com/cdo/configuration/smtpserver").value, "" ) )      
      llRetVal = .T.
    ELSE
      *** Manually set Configuration properties
      *** using the CdoConfig table
      llRetVal = This.GetSmtpInfo()
    ENDIF
  ENDIF
ENDWITH
The GetSmtpInfo() method reads the required settings from a table.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform