- Reading the emails received in the POP3 mailbox
EmailReadMessage (Example)
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 ELSE UserName = "" Error("Unable to establish the connection") END ... 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 EmailReadMessage(UserName) // 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 ... HAdd(Message) ELSE // The message does not exist anymore Info("This message was deleted") END END
This page is also available for…
|
|
|
|