You can attach output from other Processes to emails delivered via an EasyLink Email connector by retrieving the attachments with an Attachment connector.In the Attachment connector, you specify which driver to use for the attachment (e.g. PDF) and the name of the attachment. You can also specify the name of the attachment by using the MIMESetPartProperty script function.The Process or Processes that create the attachments must be run before the Process that invokes the EasyLink Email connector. The email is sent to EasyLink when the Process that invokes the EasyLink Email connector is completed, so any attachment intended for the email must be created before that time.By default the Processes are executed in the order they are displayed in the runtime configuration view (top to bottom). You can use scripting to change this order.All output from Processes that are connected to the Attachment connector and run before the Process connected to the EasyLink email connector are automatically added to the email.There are no physical layer settings for the Attachment connector. The generic layer settings are the same as for other output connectors with two exceptions:
1 Right-click the Platform view and select New Output Connector > Attachment. A new Attachment connector is added.
2
4
5 Specify the Attachment content type:
– Auto – the content type is derived from the driver used by the Attachment connector.
– Predefined – select the content type from the Predefined content type drop-down list.
– Custom – enter a custom content type in the Custom content type field.
6 Click OK.
• AttachmentBegin – normally called from a Before Process script on the first Process to include in an attachment.
• AttachmentEnd – ends the AttachmentBegin function, and is called from an After Process script on the last Process to include in an attachment.
• MIMEAddPart – adds a file on the local file system as an attachment to an output connector. When you use this script function with the EasyLink Email Connector, you cannot use attachments in the body of the email.
• MIMESetPartProperty – specifies additional options for attachments added by a MIMEAddPart call.
| OpenText StreamServe 5.6.2 | Updated: 2018-01-26 |