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
EmailCopy (Function)
In french: EmailCopie
Copies an email found in a directory to another directory of an IMAP server.
Remark: This function is not available for the POP3, Outlook and Notes sessions.
Example
MyEmail is Email
MySession is emailIMAPSession
...
// Start the session
IF EmailStartSession(MySession) = True THEN
// Read the first email
IF EmailReadFirst(MySession, MyEmail) = True THEN
// Copies the email into another folder
EmailCopy(MySession, MyEmail, "Inbox/Read")
END
EmailCloseSession(MySession)
END
Syntax

Copying an email found in an Email variable Hide the details

<Result> = EmailCopy(<Email> , <Documentation>)
<Result>: Boolean
  • True if the image was copied,
  • False otherwise.
<Email>: Email variable
Name of the Email variable that corresponds to the email to be copied. This email is associated with an IMAP session.
<Documentation>: Character string
Destination folder of the email. This folder must exist. The list of folders is returned by EmailListFolder.

Copying an email found in an Email variable while specifying the IMAP session Hide the details

<Result> = EmailCopy(<Session> , <Email> , <Documentation>)
<Result>: Boolean
  • True if the image was copied,
  • False otherwise.
<Session>: emailIMAPSession variable
Name of the emailIMAPSession session corresponding to the session to which the email belongs.
<Email>: Email variable
Name of the Email variable that corresponds to the email to be copied.
<Documentation>: Character string
Destination folder of the email. This folder must exist. The list of folders is returned by EmailListFolder.
Component: wd290com.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help