Formatting E-Mail Messages

The information in this article applies to:

Product: Metastorm BPM (e-Work)
Version: 6.5 6.6.x

Issue

  • E-mail is not being sent as HTML.
  • A line break can't be inserted into an e-mail when using the function %Email().

Resolution

  • Configure the e-Work Engine Mail Connector to send MIME-encoded messages with an HTML BodyFormat. To do this, edit the following registry key: HKEY\_LOCAL\_MACHINE\\SOFTWARE\\Metastorm\\e-work\\Engine\\MailConnector

    Set the Connector value to
    ProgID=ework.MailConnector.SMTP;DefaultAddress= ;LocaleID=1252;BodyFormat=HTML;EncodingFormat=MIME;AttachmentEncoding=MIME

  • When sending URLs in an e-mail, format the URL as follows using HTML tags:

    The hyperlink goes here

    e.g. Visit The Metastorm Website

  • To format an e-mail with new lines, use
    instead of %Linefeed().
    For example, if you have a variable called Memo1 that you want to be the message body of an e-mail, use the following:

    %Email("ToEmailAddress","","%Subject","%Replace(%Memo1,%Linefeed(),"
    ",0)","","FromEmailAddress").

    This will replace all of the line break/carriage returns in your memo variable with HTML
    tags.

  • Restart the e-Work Engine to effect the change.

  • See the related article listed to the right for more information on %Linefeed() and %Newline().

Tagged: