Creating email templates that include attachments
This section contains a sample email template that includes an attachment field.
To create an email template that includes attachments
- Export the email template for the form that you want to make available for submitting.
Make sure that the form contains an attachment pool and a valid attachment field. Edit the template to include the label and value for an attachment field (for example, Attach!536880912!:), as shown here:
# File exported Fri Mar 07 10:30:40 2004
Qualification: 'Source' = "Phone" OR 'Source' = "email"
Schema: Email Submit
Server: polycarp
Login:
Password:
Action: Submit
# Values: Submit, Query
Format: Short
# Values: Short, Full
# Values: Short, Full
Submitter ! 2!:
Short Description ! 8!:
Attach!536880912!: <====== (Manually add this line based upon the
attachment field name and database ID)Make sure that you use the ID of the attachment field, not the attachment pool.
- In a third-party client tool such as Microsoft Outlook Express, create a new email, and copy and paste the template into the body of the email
- Add all the required values, for example, Login name, password, and so on.
Supply the attachment file name including the extension after the attachment field parameter.
A user email template filled out with a filter.log file attached appears as follows:Schema: Email Submit
Server: polycapr
Login: Demo
Password:
Action: Submit
# Values: Submit, Query
Format: Short
# Values: Short, Full
# Values: Short, Full
Submitter ! 2!: Demo
Short Description ! 8!: Submitting email with attachment file.
Attach!536880912!: filter.log- Insert your filter.log attachment file anywhere in the email. If the attachment name including the extension is not supplied in the email template, the email submission will fail.
- Send the email to the incoming mailbox.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*