AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Desarrollar una aplicación o un sitio web / Controles, ventanas y páginas / Controles: tipos disponibles / Control Área de texto enriquecido
  • 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
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/05/2022

Señalar un error o enviar una sugerencia | Ayuda local