|
|
|
|
|
- Properties specific to emailIMAPSession variables
- Functions that use emailIMAPSession variables
emailIMAPSession (Variable type) In french: emailSessionIMAP
The emailIMAPSession type is used to access a messaging server by using the IMAP protocol (Internet Access Message Protocol) in order to retrieve the messages found on this server. You can define and change the characteristics of the connection 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.
MySession is emailIMAPSession
MySession.ServerAddress = "imap.mycompany.us"
MySession.Name = "user"
MySession.Password = EDT_Password
EmailStartSession(MySession)
FOR EACH EmailMessage NOT READ OF MySession
Trace(EmailMessage.Subject)
END
Remarks Properties specific to emailIMAPSession variables The following properties can be used to handle emailIMAPSession variables: | | | Property name | Type used | Effect |
---|
AuthToken | AuthToken variable | Email server access token to be used when if the OAuth 2.0 protocol is used (two-factor authentication). This access token is retrieved by AuthIdentify. | 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 using IMAP.
- optionTLS: Connection using IMAP with TLS tunneling. This option guarantees confidentiality, but must be supported by the server.
Before version 28 Update 4, this constant was named optionSSL .
| Password | Character string | User password. This password is given by the service provider or by the network administrator. | Port | Integer | Identifies the port used for the IMAP protocol. This property is set to 143 by default (standard port number of the IMAP protocol). | 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 (for example, imap.free.fr). This syntax is recommended.
|
Functions that use emailIMAPSession variables | | EmailAddFolder | Adds a folder into the messaging software (Outlook, messaging software using the IMAP protocol (Internet Message Access Protocol), ...). | EmailChangeFolder | Modifies the current folder in the messaging software (Outlook, messaging software using the IMAP protocol, ...). | EmailChangeStatus | Changes the status of an email on a messaging server. | EmailCloseSession | Closes an email management session depending on the selected mode (SMTP/POP3, IMAP, MS Exchange or Lotus Notes). | EmailCopy | Copies an email found in a directory to another directory of an IMAP server. | EmailCurrentFolder | Returns the name of current folder in the messaging software (Outlook, messaging software using the IMAP protocol (Internet Message Access Protocol), ...). | EmailDeleteMessage | Deletes the current email using the current protocol (POP3, IMAP, MS Exchange, Lotus Notes or Outlook). | EmailExpunge | Destroys all the deleted emails marked as deleted ("Deleted" status) from the current folder of IMAP session. | EmailGetAll | Retrieves all the emails found on a server. | EmailGetIndicator | Retrieves the indicators defined on an email of IMAP session. | EmailListFolder | Returns the list of folders: - found in the Outlook messaging software.
- for an IMAP session.
| 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). | EmailRemoveFolder | Deletes a folder from the Outlook messaging software or from an IMAP server. | EmailSeekFirst | Finds one or more emails according to the criteria specified in the messaging software (Outlook, messaging software using the IMAP protocol, ...). | 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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|