Back to Top

15 Jul 2005

Email and VFP: Part 1g (w3JMail)

The following code works with w3Jmail, which is available as FREEWARE.  They have other licenses available as well, so should you need more functionality than the code below provides you can have it.  Their documentation is good, especially when compared to most other 3rd party components for email.  I’ve used w3JMail with excellent success and highly recommend it (I’m not affiliated […]

Continue reading..Email and VFP: Part 1g (w3JMail)
13 Jul 2005

Email and VFP: Part 1d (CDO NTS)

CDO NTS (A.K.A. CDO 1.2.1) is another way to send email from VFP.  It is no longer included with newer versions of the Windows OS.  I could speak at length about it, but there is already some goood information out on the MSDN: Introduction to CDO NTS and The NewMail Object ********************************!* Example of using SendViaCDONTS*******************************#DEFINE CDOLOW  0#DEFINE CDONORMAL  1#DEFINE […]

Continue reading..Email and VFP: Part 1d (CDO NTS)
12 Jul 2005

Email and VFP: Part 1c (CDOSYS)

CDOSYS sends the email directly to the SMTP server you designate.  Thus, it can come in handy when avoiding the Outlook security alert you may have noticed in my previous blog entries Email and VFP: Part 1a and Part 1b.  Special Note: CDOSYS (A.K.A CDO 2.0) first came out with the Windows 2000 OS. ********************************!* Example of using SendViaCDOSYS*******************************DIMENSION aryAttach(2)aryAttach(1) […]

Continue reading..Email and VFP: Part 1c (CDOSYS)
12 Jul 2005

Email and VFP: Part 1b (Outlook)

If you can count on your users using Outlook for their email client (as opposed to Eudora or whatever), then the following code can come in handy.  Sending email via Outlook Automation gives us access to a number of features that come stock with the MailItem object.  I’ve touched on a few below, but for more information refer to the […]

Continue reading..Email and VFP: Part 1b (Outlook)
29 Jun 2005

Execution Time for VFP

Testing Code Execution PerformanceYou may be familiar with the coverage profiler which does a pretty good job of giving you the time it takes for a particular piece of code to run (even better if you’re using VFP9 or have written some custom queries for the coverage log).  This is preferred if you are diagnosing a lag somewhere in your […]

Continue reading..Execution Time for VFP