See the following procedure to knowing how to create 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 with attachments. 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 in the following code:
# File exported Fri Mar 0710:30:402004 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 anddatabase 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 and password.
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 is displayed 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.