Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending email on a given date
Message
De
02/06/2009 17:07:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01403273
Message ID:
01403294
Vues:
54
>Anyone know how to get Outlook to send an email on a given date from Foxpro?

There are at least a couple of approaches:

1. Have a VFP program running continuously. Within VFP, determine if it's now the time to send the message. You could use a Timer control, or a loop with a Sleep API call for this (use a long timer interval e.g. a minute or longer so your program doesn't hog CPU).

After the desired date/time is reached, and the message sent, the program can keep running, or can terminate itself.

2. Create a VFP program that only knows how to send a mail immediately. Then, use the Windows Task Scheduler to schedule when this program will be run.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform