ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Managing emails
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
EmailCopy (Function)
In french: EmailCopie
Copies an email found in a directory to another directory of an IMAP server.
Note: This function is not available for POP3, Outlook and Notes sessions..
Example
MonEmail is Email
MaSession is emailIMAPSession
...
// Ouverture de la session
IF EmailStartSession(MaSession) = True THEN
	// Lecture du premier email
	IF EmailReadFirst(MaSession, MonEmail) = True THEN
		// Copie l'email dans un autre dossier
		EmailCopy(MaSession, MonEmail, "Inbox/Lu")
	END
	EmailCloseSession(MaSession)
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: wd300com.dll
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help