PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Set Timer to check from mailbox for every specifc time
Set Timer to check from mailbox for every specifc time
Started by eak0_0, May, 29 2003 9:49 AM - 1 reply
Posted on May, 29 2003 - 9:49 AM
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
Posted on June, 20 2003 - 8:10 PM
"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")