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
Retrieves the HTML code of an email to display it in an HTML control (HTML control, HTML Display control, etc.). Images are extracted to the disk.
Example
oEmailReceived is Email
//...
// Read the inbox to fill oEmailReceived
//...
HTMEDT_Email.WorkingDirectory = "C:\Temp\mail"
HTMEDT_Email = EmailExportHTML(oEmailReceived, HTMEDT_Email.WorkingDirectory)
Syntax
<Result> = EmailExportHTML(<Email> , <Directory>)
<Result>: Character string
HTML code that can be assigned to an HTML control (HTML control, HTML Display control, etc.).
<Email>: Email variable
Name of the Email variable that corresponds to the email with the HTML code to be retrieved.
<Directory>: Character string
Path of the directory in which the images will be saved.
Remark: If the image already exists, a suffix is added to the name of the image stored on the disk (_1, _2, _n.).
Remarks
  • Extracted images are referenced in the resulting HTML code by a "./myimage.png" tag.
  • Images references of type <img src="cid:dddd"> are replaced with <img src="./myimage.png">.
Component: wd300com.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/30/2023

Send a report | Local help