ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • Example 1: Reading the first incoming email via the POP3 protocol
  • Example 2: Reading the first incoming email via MS Exchange
EmailReadFirst (Example)
Example 1: Reading the first incoming email via the POP3 protocol
The following code is used to read the incoming emails found in the mailbox of the POP3 protocol. These emails are read from first to last and are displayed in the "TABLE_Email" control.. 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.ifrance.fr", ...
"smtp.ifrance.fr") = True THEN
UserName = USER
ELSE
UserName = ""
Error("Unable to establish the connection")
END
 
// Populate a Table control with the messages received
EmailReadFirst(UserName)
WHILE Email.Out = False
TableAdd(TABLE_Email_Table, Email.Sender + TAB + Email.Subject)
EmailReadNext(UserName)
END
Example 2: Reading the first incoming email via MS Exchange
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help