PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → Set Timer to check from mailbox for every specifc time
Set Timer to check from mailbox for every specifc time
Débuté par Ekachai K., 29 mai 2003 09:49 - 1 réponse
Posté le 29 mai 2003 - 09:49
I'm new for Windev. So I want some help.
My program want to check mailbox(by POP3) for every specific time by setting
timer. If it has a new email coming,my program will alert me. Can the Windev
do like this. Or anyone has some code as an example.
Thank you for reply
Posté le 20 juin 2003 - 20:10
"Ekachai K." <eak0_0@hotmail.com> wrote:

I'm new for Windev. So I want some help.
My program want to check mailbox(by POP3) for every specific time by setting
timer. If it has a new email coming,my program will alert me. Can the Windev
do like this. Or anyone has some code as an example.
Thank you for reply


============================================================
Try something like this:

//To define the timer
Timersys("PROC_01",60000,1)

//procedure to very the arraival of the email
PROCEDURE PROC_01()

emailstartpop3session("user","password","mail.server.com")
emailreadlastheader("user")
IF NOT Email.Out THEN
info("new email as arraived ")
end
emailclosesession("user")