ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • 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

Last update: 05/26/2022

Send a report | Local help