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
  • Example 1: Deleting the fifth email received via the POP3 protocol
  • Example 2: Deleting incoming emails via MS Exchange
EmailDeleteMessage (Example)
Example 1: Deleting the fifth email received via the POP3 protocol
The following code is used to read the fifth incoming email and to delete it. The characteristics of the POP3 protocol have been specified by EmailStartSession (address of the POP3 server, address of the SMTP server, etc.).
// Start the email session
IF EmailStartSession(USER, PASSWORD, "pop3.gmail.com", "smtp.gmail.com") = True THEN
UserName = USER
ELSE
UserName = ""
Error("Unable to establish the connection")
END
// Read the incoming messages
I is int
nbMSG is int = EmailNbMessage(UserName)
FOR I = 1 TO nbMSG
EmailReadMessage(UserName, I)
IF I = 5 THEN
EmailDeleteMessage(UserName, 5)
END
END
Example 2: Deleting incoming emails via MS Exchange
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