ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / HTML Editor functions
  • Operating mode of images and attachments
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Exports the content of an HTML Editor control to an Email variable (to send the email).
Example
MonMessage is Email
HTMLEditorToEmail(EDHTML_MonEditeurHTML, MonMessage)
MonMessage.Recipient = "flop-fr@gmail.com"
MonMessage.Subject = "Test"
EmailSendMessage(MaSession, MonMessage, emailOptionEncodeHeader)
Syntax
HTMLEditorToEmail(<HTML Editor control> , <Email> [, <Option>])
<HTML Editor control>: Control name
Name of the HTML Editor control used.
<Email>: Email variable
Name of the Email variable into which the HTML document in the HTML Editor control is to be imported. If this parameter is not specified or is an empty string (""), the Email structure is used.
Note: The HTML property of variable type Email (or the Email.HTML variable of structure Email) is automatically assigned with the HTML contained in the HTML Editor field.. The characters are encoded in UTF-8 and the corresponding charset is inserted.
<Option>: Optional Integer constant
Export options, valid only when using the Email structure:
emailOptionDefault
(Default value)
A unique identifier is generated to identify each image found in the HTML file. This identifier is unique regardless of the exported HTML file.
Default operating mode.
emailOptionNoCIDAn identifier is generated for the images in the HTML file. This identifier is not unique. If multiple HTML files are exported, they can use the same image identifiers.
Remarks

Operating mode of images and attachments

If the HTML Editor field refers to images:
  • these images are automatically added as attachments to the email (in the Email or in the Email variable).
  • the HTML code of message is modified in order to reference the attachments.
Attention: Attachments are "added" to the email. For example, if the variable Email.NbAttache is set to 2 before the function HTMLEditorToEmail is called, and if the content of the HTML Editor field refers to an image, this image will be put into the variable Email.Attache[3] and the variable Email.NbAttache will be set to 3.
The additional attachments must be added before using HTMLEditorToEmail.
The order in which the attachments are sent is not necessarily respected when the email is received. The identifier of images is a unique identifier.Note: If the import is performed in a variable of type Email, images embedded by encoding in the source HTML file are also processed.
Business / UI classification: UI Code
Component: wd300obj.dll
Minimum version required
  • Version 26
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help