Hubert,
>I am searching a function for send and receive mails from an VFP application. It must be run timely every hours.
If you want to go direct to an SMTP server without worrying about what email client is installed, get wwIPStuff from
www.west-wind.com. It has sample VFP code, which is very simple to use.