- Reading the emails received in the POP3 mailbox
Reading the emails received in the POP3 mailbox
The following code is used to read all the emails found in the POP3 mailbox.
// Start the POP3 session
IF EmailStartSession(USER, PASSWORD, "pop3.ifrance.fr", ...
"smtp.ifrance.fr") = True THEN
UserName = USER
UserName = ""
Error("Unable to establish the connection")
I is int
// Retrieve the number of messages in the POP3 mailbox
nbMSG is int = EmailNbMessage(UserName)
// Browses the messages and retrieves the email structure in an HFSQL file
FOR I = 1 TO nbMSG
// Checks the existence of the message
IF Email.Out <> True THEN
// The variables of the email structure are transfered
// into the file items
ME.NAME = Email.Sender
ME.MESSAGE = Email.Message
// The message does not exist anymore
Info("This message was deleted")
This page is also available for…