PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • 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