N2WEB logoN2WEB

createform

Create!form

Create!Email is an output module for Create!form Server. It enables email to be sent via either SMTP or via VIM to a Lotus Notes® mail server.

This module is usually used in conjunction with Create!PDF or Adobe Distiller® to generate PDF versions of documents and email them as an attachment.

Create!email includes the following features:

  • Automatic distribution of documents via email in any of the following formats/methods:
    • PDF attachment(s) with optional password protection
    • Embedded hyperlink within an email body - store PDF document on a web server or similar
    • Text in the body of the email itself - plain text or HTML encoded emails
  • Send to one or more email recipients - including TO, CC or BCC
  • Personalise subject line and email content dynamically on the fly
  • Optional delivery or notification of failed messages

Full list of JTT controls for Email

All email JTT commands must be enclosed within
%cpEmailBegin
...
%cpEmailEnd
Within the JTT header

All email commands follow the format of
%cpEmail:-email parameter

Email Parameters
%cpEmail:-TOrecipient@address.com#use multiple times as required
%cpEmail:-CCcopy@address.com#use multiple times as required
%cpEmail:-BCCblindcopy@address.com#use multiple times as required
%cpEmail:-DELIMITERS,#specify delimiter to allow multiple addresss on single line. e.g. %cpEmail:TOabc@add.com,xya@add.org
%cpEmail:-FROMsender@address.com#specified from address, if not set will use default in set-up

%cpEmail:-SSubject of email
%cpEmail:-BODYText to appear in body of email
%cpEmail:-SIGNATURESet a signature for the email#appears at end of body
BODY and SIGNATURE parameters may appear over several lines. They continue until the next %cpEmail parameter starts

%cpEmail:-THISfilename.ext#Specifies the filename of the attachement generated from the spool data
%cpEmail:-NOSPOOL#suppress attachment of file
The contents of the spool file may be included in the body text using the <<InsertSpool>> For example:
%cpEmail:-BODYIn response to your query <<InsertSpool>>, Thank you for your enquiry.

%cpEmail:-COPYTOw:\web\online\invoice1234.pdf#stores document to location, such as webserver. Include link to file in body text
%cpEmail:-Pplaceholder name=value#sets a placeholder value for use in other parameters. For example:
%cpEmail:-PLocation=http://web/online/invoice1234.pdf
%cpEmail:-BODYDownload your invoice from <<Location>>

%cpEmail:-ATattachement#attach additional files. Use multiple times for more files
%cpEmail:-TMPLname of template file#use template to define parameters
Example Template file

[TO]
  recipient1@address.com

[CC]
  recipient2@address.com
  recipient3@address.com

[BCC]
  recipient4@address.com

[FROM]
  sender@address.com

[SUBJECT]
  Email Subject

[BODY]
  Dear Customer,
  Please find attached your invoice for development work
  this month. Please read NOTICE.TXT for addition information
[END_BODY]

[SIGNATURE]
  New World Company Ltd
  123 Globe Street
  Globe City
[END_SIGNATURE]

[ATTACHMENTS]
  C:\information\clientnote.txt<<NOTICE.TXT>>

Placeholders may also be used with templates. Use the [PLACEHOLDERS] parameter
To include a second template in a template use the [INCLUDE] parameter

To include HTML in an email, simply place standard HTML tags within the body text. For example:
<HTML> <BODY>Body text as required. Use <br /> for new lines or <p> for paragraph control. Finish with </BODY> </HTML>

To include new lines (line feeds) in the text of the email without using a template you can build the body text in a variable and pass this variable as an argument to the JTT. In the text place a \n where the new line is required.