|
Email header settingsAn email header contains routing information, such as the sender, recipient/s and subject of the message. This topic explains how to make settings for the header of an email that is generated from an Email template. The default Email SMTP settings and the sender's name and address are defined in the Connect Designer preferences. They can be adjusted per run in the Send Email and Send Test Email dialogs. The subject, the recipients (To, Cc and Bcc), the sender and the Reply to address can be entered in the Email Fields at the top of the workspace. If the fields are not visible, click the words 'Email Fields' (or the small plus before them) to expand the Email Fields area. Using a variable email address requires you to load data
Using the Email Script WizardIn addition to the drag and drop method, you can use the Email Script Wizard to add data to an email header field. It lets you choose one or more data fields and enter a prefix and/or suffix (per data field).
The default script adds the content of the selected data field to the header field. Other header fieldsAt some point you may need to define a header field that isn't available in the Preferences or in the Email Fields. This can be done in a Control Script. For a few examples of such scripts, see Adding custom ESP handling instructions. To get started with Control Scripts, refer to Control Scripts. Email SMTP settingsSimple Mail Transfer Protocol (SMTP) is the standard protocol for sending emails across the Internet. Default SMTP settings can be specified in the Preferences dialog: select Window > Preferences, expand the Email preferences and click SMTP. You can add as many presets as needed, for example for different Email Service Providers (see Using an ESP with PReS Connect). To do this, click the Add button at the right. Then fill out the following settings:
When you click the Restore button, the presets for a number of Email Service Providers will appear. When updating the software from a version prior to version 1.5, pre-existing presets will be maintained in the new version.
In the Send Test Email dialog and Send Email dialog (see Send (Test) Email) you will be able to choose one of the presets and adjust the settings to your needs. SubjectTo specify a subject for an email template:
To add variable data to the subject of an email section, drag and drop a data field into the Subject field at the top of the workspace. Two things will happen:
You can add as many data fields to the subject as you like. When you do add more than one data field, the existing Subject script will be modified to include all data fields that are added to the subject. The result of the script will be visible in the Subject field in Preview mode: click the Preview tab at the bottom of the workspace. By default, the Subject script targets one email section specifically. You can see this when you double-click the script on the Scripts pane. The selector of the Subject script contains the name of a particular email section, for example: html[section="Content"] (in this case, Content is the name of the email section). If you remove the Subject scripts made with earlier versions of the software are not specific to one email section. Writing a custom Subject scriptThe default script replaces all @field@ placeholders in the subject line with field values. This script can be modified, for example to create a subject that depends on the value of a data field. Open the Script Wizard (see Using the Email Script Wizard), click the Expand button and modify the script. A Subject script created by clicking Subject in the Email Fields always targets one email section specifically. Remove the
html[...] part from the selector of the script to make the script work for all email sections.Recipients: To, CC and BCCTo specify recipients for Email output, you can simply drag and drop a data field that contains an email address into the To field at the top of the workspace. A new script, named To, will be added to the Scripts pane. Email addresses can be added to the Cc and Bcc fields in the same manner, but it is also possible to type an email address directly in the Cc or Bcc field (as long as no script is present for that field). Alternatively, you could use the Script Wizard to create the scripts; see Using the Email Script Wizard. SenderFrom addressA default From name and email address can be specified in the Preferences dialog: select Window > Preferences, expand the Email preferences and click General. The default can be overwritten by typing an email address directly in the From field (as long as no script is present for this field). Using the Script Wizard you can create a dynamical From address; see Using the Email Script Wizard. It is also possible to drag and drop one data field into the From field directly. A dynamical From address is often used when sending email campaigns and to do tracking of email replies. Include the recipient's email address in a dynamic From address to enable automatic detection and removal of undeliverable e-mail addresses. (This technique is called VERP; see Wikipedia.)
When sending emails with a variable From address through PReS Workflow, check the option Precedence to template address in the Create Email Content task properties to make sure that the dynamic address gets precedence over the email address specified in the task properties (see Create Email Content task).
Reply To addressThe Reply To address is used by mail clients, when the recipient clicks the Reply To (or Reply All) button. You can type an email address directly in the Reply To field (as long as no script is present for this field). Email PDF passwordThe Email PDF Password Script Wizard defines a password with which to protect the PDF generated when using the Print context as PDF Attachment option in the Send Email or Send Test Email dialogs (see Generating Email output). The result of the script will be the password necessary to open the PDF when it is received by email. To define a password to protect the generated PDF attachment:
Password typesPDF allows for two types of passwords to be set on a secured PDF file: a user password and owner password. The user password allows a limited access to the file (e.g. printing or copying text from the PDF is not allowed). The owner password allows normal access to the file. The Email PDF password script sets both the user and owner password to the same value, so that when the recipient provides the password, he can manipulate the file without limitations. If a template has a Control Script that creates multiple PDF attachments, all the attachments are secured by the same password.
Via a Control Script it is possible to set a different user password and owner password, see Control Script: Securing PDF attachments, Control Scripts and Control Script API.
|
|