|
|
|
|
|
- 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.
IF EmailStartSession(USER, PASSWORD, "pop3.ifrance.fr", ...
"smtp.ifrance.fr") = True THEN
NomUser = USER
ELSE
NomUser = ""
Error("Impossible d'établir la connexion")
END
...
I is int
nbMSG is int = EmailNbMessage(NomUser)
FOR I = 1 TO nbMSG
EmailReadMessage(NomUser,I)
IF Email.Out <> True THEN
ME.NOM = Email.Sender
ME.MESSAGE = Email.Message
...
HAdd(Message)
ELSE
Info("Ce message a été supprimé")
END
END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|