|
|
|
|
- Properties specific to emailPOP3Session variables
- Functions that use emailPOP3Session variables
emailPOP3Session (Type of variable) In french: emailSessionPOP3
The emailPOP3Session type is used to access a messaging server by using the POP3 protocol (Post Office Protocol) in order to retrieve the messages found on this server. The characteristics of the connection can be defined and changed using different WLanguage properties. Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
// Ouverture d'une session POP3 MaSession is emailPOP3Session MaSession.ServerAddress = "pop.mondomaine.fr" MaSession.Name = "utilisateur" MaSession.Password = "secret" EmailStartSession(MaSession) // Récupération de tous les messages tabMessage is array of Email tabMessage = EmailGetAll(MaSession) // Parcours du tableau des messages par les indices FOR i = 1 _TO_ MaSession.EmailParIndice.Occurrence Trace(MaSession.EmailByIndex[i].Sujet) END // Parcours du tableau des messages avec une boucle POUR TOUT FOR EACH UnMessage OF MaSession Trace(UnMessage.Sujet) END Remarks Properties specific to emailPOP3Session variables The following properties can be used to handle emailPOP3Session variables: | | | Property name | Type used | Effect |
---|
ServerAddress | Character string | Address of email server. This address is supplied by the service provider or by the network administrator. This address can be given in the following format:- IP address (in XXX.XXX.XXX.XXX format, 125.5.110.100 for example).
- Name of server (pop3.free.fr for example). This syntax is recommended.
| Password | Character string | User password. This password is given by the service provider or by the network administrator. | Name | Character string | Identifies the user. This name is supplied by the service provider or by the network administrator. | Option | Integer constant | The possible values are:- emailOptionDefault (default value): Connection by using the POP3 protocol.
- optionSSL: Connection using POP3 protocol inside an SSL tunnel. This option guarantees the confidentiality of exchange but it must be supported by the server.
| Port | entier | Identifies the port used for the POP3 protocol. This property is set to 110 by default, corresponding to the number of standard port for this protocol.Remark: To use the SSL protocol, the port number must be specified. In most cases, the email servers expect the SSL connections on port 995. |
Functions that use emailPOP3Session variables | | EmailCloseSession | Closes an email management session depending on the selected mode (SMTP/POP3, IMAP, MS Exchange or Lotus Notes). | EmailDeleteMessage | Deletes the current email using the current protocol (POP3, IMAP, MS Exchange, Lotus Notes or Outlook). | EmailGetAll | Retrieves all the emails found on a server. | EmailMessageLength | Calculates the size of specified message (without loading the message). | EmailNbMessage | Returns the number of incoming messages currently found:- on the email server (POP3 protocol only).
- in the Outlook messaging software.
| EmailReadFirst | Reads the first incoming email according to the protocol used (POP3 or IMAP, MS Exchange, Lotus Notes or Outlook). | EmailReadFirstHeader | Reads the header of the first incoming email according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook). | EmailReadLast | Reads the last incoming email according to the protocol used (POP3 or IMAP, MS Exchange, Lotus Notes or Outlook). | EmailReadLastHeader | Reads the header of last incoming email according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook). | EmailReadMessage | Reads an incoming according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook). | EmailReadMessageHeader | Reads the header of an incoming email according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook). | EmailReadNext | Reads the incoming email found after the current email according to the protocol (POP3 or IMAP, MS Exchange, Lotus Notes or Outlook). | EmailReadNextHeader | Reads the header of the email found after the current email according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook). | EmailReadPrevious | Reads the email found before the current email according to the protocol used (POP3 or IMAP, MS Exchange, Lotus Notes or Outlook). | EmailReadPreviousHeader | Reads the header of the email found before the current email according to the protocol used (POP3 or IMAP, Lotus Notes or Outlook). | EmailStartSession | Starts an email management session based on the selected management mode (POP3, SMTP, IMAP or MS Exchange). |
Related Examples:
|
Complete examples (WINDEV): WD Mail
[ + ] This application is an email client developed in WINDEV. It is based on the Email objects. This email client is used to retrieve and send emails by using the POP, IMAP and SMTP protocols. You have the ability to apply filters to the incoming emails. The application can also be used to manage several email accounts. The writing of an email is based on the HTML edit control.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|