Send an HTML email

Send an HTML email

You can send an HTML email without an attachment with the shortcut Output workflow component: Send an HTML email.

If you want an attachment, then you should consider the Create PDF email component instead.

 

The Send an HTML email workflow component has these parameters:

   

 

The fields are explained below:

 

Email to

  • The receiver(s) of the email. Multiple receivers should be separated with a semi colon (;).

Email subject

  • The subject of the email.

Mail template

  • It is recommended to use the .ifm HTML format as covered here.

  • The alternative is the .vm format as described below.

The mail template file (.vm) (UTF-8 encoded), that setup the layout of the contents of the email. In this file you can use variables setup in the workflow. Variables are referred to with a preceding $-sign.

 

Generates the HTML document for an e-mail body, based on an Apache Velocity template. The template must be uploaded in the "Mail templates" folder in the library.

In the Velocity template, you can use variables that will be replaced with metadata values (technically Camel header values). The "Set workflow variable" component can be used to set the values for the variables that are used in the mail template.

Notes

Note that Velocity variables must start with an alphabetic character (a .. z or A .. Z). The rest of the characters are limited to the following types of characters:

Alphabetic (a .. z, A .. Z)

Numeric (0 .. 9)

Hyphen ("-")

Underscore ("_")

For additional details of the Velocity format, see https://velocity.apache.org/engine/1.7/user-guide.html

Hold email

  • If you activate this option, then the email will not be sent directly, but will be generated in the status held in the email log. From the email log you can e.g. choose to download and open the email, release and send the email or to choose to delete the email from the email log.

  • You can not only set a fixed value for the hold email option, but you can also setup an XPath expression (activate it on the right) to decide if the email should be held or not. The XPath expression must return either of the values 'no' or 'yes'.

Email server

  • Here you need to refer to one of the email server (SMTP) definitions, that is setup in the InterFormNG2 configuration.

Email from

  • The email address, that is setup as the sender of the email.

Email CC

  • Optional CC (Carbon Copy) receiver(s) of the email. Multiple receivers should be separated with a semi colon (;).

 

Email BCC

  • Optional BCC (Blind Carbon Copy) receiver(s). Multiple receivers should be separated with a semi colon (;).

 

Email reply to

  • The email address setup as the reply to address.


    • Related Articles

    • Render email HTML

      The workflow component, Render email HTML (which is an advanced create document workflow component) accepts XML as input and generates an HTML file, that e.g. can be saved into the file system with the to filesystem component. The Render email HTML ...
    • HTML

      HTML is one of the supported input and output file types/payloads in InterFormNG2. You can e.g. use html as an email template in e.g. the create PDF email and the create email message workflow components, and you can e.g. transform an input file into ...
    • Email output

      If you want to email from InterFormNG2, then you can use this check list: You need to define an email server in the tenant settings. You need to define a mail template (that defines the contents of the email), which can be defined as an html template ...
    • Create PDF email

      This workflow component merges the input file with a template and sends out an email with an attachment PDF file, which is result of the merge between the input file and the template. The output payload is the same as the input payload e.g. XML. This ...
    • Create an html template

      The InterFormNG2 designer is able to create two kinds of templates: 1.Normal templates. They are used when you want to design a form for printing or PDF output. The manual mainly covers these templates. 2.HTML templates. These templates can be used, ...