ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • Search performed in the emails of an Outlook session
EmailSeekFirst (Example)
Search performed in the emails of an Outlook session
This example is used to find the emails containing the "PC Soft" string in the subject or in the message body. Only the incoming emails are taken into account
// Start an Outlook session
SessionID is int
SessionID = EmailStartOutlookSession("")
...
IF EmailSeekFirst(SessionID, emailSubject + emailBody, ...
"PC Soft") = True THEN
// Enumerate the emails found
WHILE Email.Out = False
// Displays the sender and subject in a Table control
TableAdd(TABLE_EmailFound, Email.Sender + ...
TAB + Email.Subject)
// Next email found
EmailReadNext(SessionID)
END
ELSE
Info("No email was found")
END
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help