AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Gestión de correos electrónicos
  • Deleted messages (POP3 protocol)
  • New messages (POP3 protocol)
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns the number of incoming messages on the email server (POP3 protocol).
This number of messages remains constant during the entire email session, even if new emails are received or if emails are deleted by EmailDeleteMessage.
Ejemplo
MaSession is emailPOP3Session

nbMSG is int = MaSession.NbMessage()
FOR I = 1 TO nbMSG
	EmailReadMessage(MaSession, I)
	IF Email.Out <> True THEN
		CL.NOM = Email.Sender
		CL.MESSAGE_TXT = Email.Message
		...
	ELSE
		Info("Ce message a été supprimé")
	END
END
Sintaxis
<Result> = <POP3 session>.NbMessage()
<Result>: Integro
  • Number of messages received on the server at the beginning of current email session,
  • -1 if an error occurred. To get more details on the error, use ErrorInfo.
<POP3 session>: Variable de tipo emailPOP3Session
Name of the emailPOP3Session variable corresponding to the email session to use.
Observaciones

Deleted messages (POP3 protocol)

If a message was deleted by EmailDeleteMessage:
  • <emailPOP3Session variable>.NbMessage returns the number of messages on the email server before they are deleted.
  • the message numbers are not re-assigned.
Therefore, if four messages are found on the server at the beginning of session, these messages are numbered from 1 to 4. If message #1 is deleted:
  • <emailPOP3Session variable>.NbMessage used in the same session always returns 4.
  • Message 1 cannot be read by EmailReadMessage because the message does not exist anymore (only messages 2, 3 and 4 exist).
The message numbers are re-assigned during the next connection.

New messages (POP3 protocol)

The POP3 protocol cannot be used to find out and manage the new messages received during the connection. To get the new messages, you must disconnect (<emailPOP3Session variable>.CloseSession) and reconnect (<emailPOP3Session variable>.StartSession).
Componente: wd300com.dll
Versión mínima requerida
  • Versión 24
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 30/09/2024

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