Creating email templates that include attachments


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

  1. 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.
  2. 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 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.

  3. 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
  4. Add all the required values, for example, Login name and password.
  5. 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
  6. 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.
  7. Send the email to the incoming mailbox.


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*