PC Knowledge Vault
  Home     Forum  
Register   Login  
   Forum:
  Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
Visual FoxPro
 PC Knowledge Vault Forum : Visual FoxPro
Subject Topic: Microsoft Outlook Express Automation Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
administrator
Admin Group
Admin Group
Avatar

Joined: 25 January 2003
Location: United States
Posts: 69

Online Status: Offline
Posted: 09 August 2008 at 3:53am | IP Logged Quote administrator

Here is how you can automate Outlook Express using CDO

oMail = NewObject("CDO.Message")
oMail.From =
'your@sendingemailaddresshere.com'
oMail.To = 'recipient@emailaddresshere.com'
oMail.Subject = "VFP and CDO OLE generated Message Subject"
oMail.TextBody = "This was generated and sent with nine short lines of code within Visual FoxPro 7."
omail.Configuration.Fields("
http://schemas.microsoft.com/cdo/configuration/sendusing").V alue = '2'
omail.Configuration.Fields("
http://schemas.microsoft.com/cdo/configuration/smtpserver"). Value = 'yoursmtpserverhere.com'
omail.Configuration.Fields("
http://schemas.microsoft.com/cdo/configuration/sendpassword" ).Value = 'youremailpasswordhere'
omail.Configuration.Fields.Update
oMail.Send

Back to Top View administrator's Profile Search for other posts by administrator Visit administrator's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.92
Copyright ©2001-2004 Web Wiz Guide
* Webmaster |  ©2005-2010 PC Knowledge Vault |  Site Launched: Oct. 29 2005
Powered By EzASPSite v2.0 RC3a