PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Reading the previous email received in the POP3 mailbox
EmailReadPrevious (Example)
Reading the previous email received in the POP3 mailbox
The following code is used to read all the incoming emails from the most recent one. For each email, the user can view the entire email in the "WIN_Email_RCV" window.
// Start the email session (POP3 protocol)
IF EmailStartSession(USER, PASSWORD, "pop3.ifrance.fr", ...
"smtp.ifrance.fr") = True THEN
UserName = USER
ELSE
UserName = ""
Error("Unable to establish the connection")
END
 
...
 
// Read the last incoming record
EmailReadLast(UserName)
// Browse the emails (from the most recent one)
WHILE Email.Out = False
IF Confirm("Message from " + Email.Sender + ...
"Do you want to read this message?") THEN
Open(WIN_Email_RCV)
ELSE
EmailReadPrevious(UserName)
END
END
 
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment