PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Operating mode of images and attachments
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Imports, into the Email structure or into an Email variable, the content of an HTML file in order to send it by email. The images found in the HTML file are automatically included in the Email structure or in the Email variable.
  • In the Email structure: The email structure handled by the current thread is filled: the Email.HTML variable as well as the Email.Attach[...] and Email.NbAttach variables are initialized according to the HTML content.
  • In the Email variable:
    • The current Email variable is filled: the ..NbAttach, ..Attach[...] and ..HTML properties are initialized according to the HTML content.
      Versions 23 and later
      Note: The images integrated by encoding in the HTML file are processed.
      New in version 23
      Note: The images integrated by encoding in the HTML file are processed.
      Note: The images integrated by encoding in the HTML file are processed.
Note: The HTML content is supported in POP3/SMTP only: this function must be used only if the email is sent in SMTP.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
Example
MyHTMLText is string
MyHTMLText = fLoadText("C:\Email\MyEmail.htm")
EmailImportHTML(MyHTMLText, "C:\Email")
Email.Recipient = "flop-fr@gmail.com"
Email.Subject = "Test"
EmailSendMessage("User")
Syntax
EmailImportHTML([<Email>,] <HTML Content to Send> , <Directory> [, <Options>])
<Email>: Optional Email variable
Versions 15 and later
Name of Email variable corresponding to the email into which the HTML document will be imported.
If this parameter is not specified, Email.HTML (variable of Email structure) is filled with <HTML Content to Send>.
New in version 15
Name of Email variable corresponding to the email into which the HTML document will be imported.
If this parameter is not specified, Email.HTML (variable of Email structure) is filled with <HTML Content to Send>.
Name of Email variable corresponding to the email into which the HTML document will be imported.
If this parameter is not specified, Email.HTML (variable of Email structure) is filled with <HTML Content to Send>.
<HTML Content to Send>: Ansi character string (with quotes)
Email content in HTML format.
<Directory>: Character string (with quotes)
Reference directory for the images (case of relative paths in the HTML content).
<Options>: Optional Integer constant
Versions 17 and later
Import options (when using the Email structure only):
emailOptionNoCIDAn identifier is generated for the images found in the HTML file. This identifier is not unique. If several HTML files are imported, they can use the same image identifier.
Default operating mode until version 170078. This operating mode may trigger the sending of emails containing inappropriate images (images stored in the cache for example, especially in iOS and BlackBerry).Default operating mode until version 17. This operating mode may trigger the sending of emails containing inappropriate images (images stored in the cache for example, especially in iOS).
emailOptionDefault
(Default value)
A unique identifier is generated to identify each image found in the HTML file. This identifier is unique regardless of the imported HTML file.
Default operating mode from version 170078.Default operating mode from version 17.
New in version 17
Import options (when using the Email structure only):
emailOptionNoCIDAn identifier is generated for the images found in the HTML file. This identifier is not unique. If several HTML files are imported, they can use the same image identifier.
Default operating mode until version 170078. This operating mode may trigger the sending of emails containing inappropriate images (images stored in the cache for example, especially in iOS and BlackBerry).Default operating mode until version 17. This operating mode may trigger the sending of emails containing inappropriate images (images stored in the cache for example, especially in iOS).
emailOptionDefault
(Default value)
A unique identifier is generated to identify each image found in the HTML file. This identifier is unique regardless of the imported HTML file.
Default operating mode from version 170078.Default operating mode from version 17.
Import options (when using the Email structure only):
emailOptionNoCIDAn identifier is generated for the images found in the HTML file. This identifier is not unique. If several HTML files are imported, they can use the same image identifier.
Default operating mode until version 170078. This operating mode may trigger the sending of emails containing inappropriate images (images stored in the cache for example, especially in iOS and BlackBerry).Default operating mode until version 17. This operating mode may trigger the sending of emails containing inappropriate images (images stored in the cache for example, especially in iOS).
emailOptionDefault
(Default value)
A unique identifier is generated to identify each image found in the HTML file. This identifier is unique regardless of the imported HTML file.
Default operating mode from version 170078.Default operating mode from version 17.
Remarks

Operating mode of images and attachments

If <HTML Content to Send> refers to images:
  • these images are automatically added as attachments to the email (in the Email structure or in the Email variable).
  • the HTML code of message is modified in order to reference the attachments.
Caution: The attachments are "added" to the email. For example, if the Email.NbAttach variable is set to 2 before the call to EmailImportHTML and if the HTML content references an image, this image will be included in the Email.Attach[3] variable and the Email.NbAttach variable will be set to 3.
The additional attachments must be added before using EmailImportHTML.
The order in which the attachments are sent is not necessarily respected when the email is received.
Versions 17 and later
The identifier of images is a unique identifier.
New in version 17
The identifier of images is a unique identifier.
The identifier of images is a unique identifier.
Versions 23 and later
Note: If the import is performed in an Email variable, the images integrated by encoding in the source HTML file are processed.
New in version 23
Note: If the import is performed in an Email variable, the images integrated by encoding in the source HTML file are processed.
Note: If the import is performed in an Email variable, the images integrated by encoding in the source HTML file are processed.
Related Examples:
Sending an email in HTML format Unit examples (WINDEV): Sending an email in HTML format
[ + ] Using the WLanguage "EmailImportHTML" function.
This function is used to import an HTML file into the email structure. This allows you to easily add images into the emails.
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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Windows Mobile wp230com.dll
Linux wd230com.so
Android wd230android.jar
Minimum required version
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment