ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Managing emails
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Changes the status of an email on a messaging server.
Example
// Switch all emails of an IMAP session to read
MySession is emailIMAPSession
...
FOR EACH EmailMessage NOT READ OF MySession
EmailChangeStatus(MySession, EmailMessage, emailStatusRead)
END
Syntax
<Result> = EmailChangeStatus(<Session> , <Email> , <New status>)
<Result>: Boolean
  • True if the status was modified on the server,
  • False otherwise. To get more details on the error, use ErrorInfo.
<Session>: emailOutlookSession or emailIMAPSession variable
Identifies the user session. Corresponds to:
<Email>: Email variable
Name of the Email variable corresponding to the email to use.
<New status>: Integer constant
Status to assign to the email, the possible values are:
emailStatusNotReadIndicates that the message was not read.
emailStatusReadIndicates that the message was read.
Remarks
This function is not available:
Related Examples:
WD Mail 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.
Component: wd300com.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help