Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Send Email in VFP just using Windows native functions

Send Email in VFP just using Windows native functions

Send Email in VFP just using Windows native functions

Hi Experts,

I have come across several ways to send email in VFP using CDO, BLAT, Outlook or some 3rd party app.

Which one basically uses native functions in Windows 10/11?

I find CDO kinda iffy coz it needs to reference some URL like "http://schemas.microsoft.com/cdo/configuration/smt...".

Pardon my ignorance in advance.

Love live the Fox!

RE: Send Email in VFP just using Windows native functions

There is no native method of sending email from within VFP, that is, there is no built-in function or command for sending email. So you will always need some third-party intervention.

Personally, I have no problem with using CDO. You say that it is "iffy" because it involves certain URLs. But I don't see that as a problem. Mike Gagnon's code (in FAQ184-4969: How to send e-mail using CDO and checking the connection status first.) works well. I understand that you don't want to rely on the URLs always being available. I can only say that I have an application that has been using CDO in this way for the last 20 years, and it hasn't failed yet.


Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads

RE: Send Email in VFP just using Windows native functions

I use Chilkat these days, yes it is not free - but it works well.

Really easy to integrate...


Keep Smileing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are !good for you.

There is no place like G28 X0 Y0 Z0

RE: Send Email in VFP just using Windows native functions

If you want to go with native functions/classes Winsock is the basis of almost all internet communication, but unless you have fun doing all things from scratch the options you mentioned, like BLAT, are making mails much simpler, another option on the same level is http://www.vfpwinsock.com/vfpwinsock.asp

If you don't even want to start on the level of configuring which mail server to adress etc. your entry point can be MAPI and that has its difficulties, too, but would be the choice when you want to use the standard mail client to send mails.


RE: Send Email in VFP just using Windows native functions

I've just reimplemented email for a client using Chilkat and the ChilkatVFP wrapper that's in VFPX. (To be fair, I've run into some issues with ChilkatVFP, but have been able to work through them with Bill Anderson, the author. I know he's already posted one update based on my feedback and there should be another one soon.)

Previously, we were using Blat, but it just stopped working one day.


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close