|
|
Using Attachments with eStatements Solution Guide
From $1
About This Guide
This solution guide contains conceptual, scenario, and procedural information about sending eStatements as file attachments within an email send. You can use these eStatements to inform customers about bank accounts, billing cycles, or other legally required notices.
Prerequisites
In order to send eStatements, you must have the file attachment feature enabled on your account. Please contact your ExactTarget service representative if you have any questions about enabling this feature. You should also be familiar with AMPscript in order to attach the correct files and personalize the emails send out as part of your eStatement sends.
eStatements Solution
This section describes exactly what the eStatements solution provides and why you should integrate this solution into your email sends.
What Is the eStatements Solution
The eStatement solution attaches personalized account information from bank accounts, credit cards, and other financial services as documents (such as PDF or .xls files) to an email. Your customers opt in to receive these statements either via email or on your website, and these sends are handled as transactional sends. Each file belongs to individual customers, so no two customers would receive the same information. These files are uploaded to an FTP site and attached to the email as part of an email send. These sends use either a subscriber list or a sendable data extension to conduct the sends. These information sources contain the account information and send information necessary to pair up the correct statement to the correct email message in the send. The customer then opens the eStatement and reviews the information.
Why Use an eStatements Solution
You can use eStatements to provide personal or legally mandated information to your customers in a timely manner. Depending on the format of your eStatement, your customers can import the information into third-party programs to review their financial information, giving them more flexibility and convenient access to your eStatement information. This kind of communication can also be used to replace paper statements to your customers, although those customers who don't receive the eStatements may require paper follow-up communication, depending on your legal requirements. Replacing paper communication can help you realize a savings in your customer communication budget.
Scenario
Northern Trail Outfitters issues and maintain credit card accounts for its customers, and thus must send regular monthly statements to its customers. While these statements have been printed on paper and sent via the mail in the past, Northern Trail Outfitters wants to offer their customers the choice of eStatements sent via email. A monthly email send includes an attached eStatement customers can use to review their account and maintain their financial records. Northern Trail Outfitters wants to use their ExactTarget account to send these eStatements, which are created as PDF files and uploaded to their website.
Northern Trail Outfitters uploads customer information including account ID information to a sendable data extension and places the eStatements in their enhanced FTP site. AMPscript within the email refers to the last four digits of the account number to attach the eStatement to the email and includes those digits in the email itself. Email sends go out monthly with these statements, and Northern Trail Outfitters uses measures and data filters inside a monthly program to regularly review bounces and send follow-up paper companies.
How It Looks
First, you must create your subscriber list or sendable data extension. The example below shows the creation of a sendable data extension:

Then, you must conduct an import activity to place subscriber information inside the sendable data extension:

You can view the data inside the data extension once the import is complete:

Once your subscriber lists or sendable data extensions are populated, you can create the email you wish to send to you customers. This example HTML email shows some of the personalization and the AttachFile() AMPscript function you can use to send the attached eStatements:

In this case, the AMPscript combines the customer's account number with the extension .csv to find the correct eStatement in the ExactTarget Enhanced FTP site. The ExactTarget application joins the attachment to the email at the time of the send.
How It Works
The flowchart below describes the overall process of sending eStatements via an email send:

Creating the Subscriber List
Before you can import subscribers into your subscriber list, you must first create the list as shown in the following steps.
How to Create a List
Before you create a list, decide:
- whether you're going to require subscribers to confirm their email address after they subscribe. If so, you will need to create the email message prior to creating the list, or create a text-only message when you create the list (see step 8 of this procedure).
- whether you're going to attach a welcome email to this list. A welcome email is what subscribers receive when they subscribe to your list. You can assign a welcome email to this list during list creation, which requires you to create an email before creating the list, or you can assign the welcome email later by using Manage Welcome Email.
Note: Lists that you create in your Enterprise administrator account are accessible to your On Your Behalf channel members.
Additionally, if you're an On Your Behalf channel member, you cannot create lists; you see only the lists created by your Enterprise administrator. However, you can add subscribers to these lists.
You can create public and private lists by following these steps:
- Click the Subscribers tab.
- Click the my lists folder.
- Click the Create List button.
- Complete the List Identification section that appears, as follows:
| Field | Description | | Name | Enter a name for the list. This name identifies the list in the Email Send Wizard. If you make this list public, this name appears in the Subscription Center. Your list name cannot contain the # symbol or be longer than 50 characters. | | Description | Enter a brief description of the list. This description appears in the list workspace. Additionally, if you make this list public, this description appears in the Subscription Center. | | List Attributes | | Public | Selecting the "Public" option will result in this list being displayed in the Subscription Center. A subscriber can opt-in or opt-out of any public list. | | Salesforce.com | This option may not be enabled in your account. For more information, contact your ExactTarget representative. Selecting the "Salesforce.com" option will result in this list being integrated with Salesforce. Tracking information for all leads and contacts on this list will be posted to the appropriate record in Salesforce. | - Select the list location in the List Location section. By default "my lists" is selected.
- Select whether to associate a Send Classification to your list. This option may not be enabled in your account.
- Click Next.
- Complete the Opt-in Behavior section.
- If you'd like subscribers to provide confirmation of their email address once they subscribe to your list, select the Require subscribers to provide confirmation of valid email address (double opt-in) checkbox. Then you must select the confirmation email by clicking Select.
- Complete the Opt-in Landing Page section. You can select whether to use a default landing page or to define your own landing page.
- Click Next.
- Specify whether or not you will send a welcome email. If you choose to send a welcome email, specify the email by clicking Select.
- Click Save.
Your new list is now ready for you to add subscribers. You can add subscribers manually or you can import subscribers.
Once you've created the list, you can add subscriber information to the list. Be sure to include fields for all of the applicable send information, including name, account number, email address, and any other pertinent information.
How to Import Subscribers Into a List

Before you can import a file, you must first create a list and create the import file.
Note: If you're using a Reseller or Enterprise account and have the limited-release Unsubscribe Management feature enabled, email addresses that appear on the ExactTarget global unsubscribe list or your account-level unsubscribe list will not be imported.
Before your import your file, read the Imports page for recommendations about preparing the file.
You can import subscribers from your Outlook contact list. See Importing Microsoft Outlook Contacts into a Subscriber List.
To import the subscribers from your import file, follow these steps:
- Click the Subscribers tab.
- Click the My Lists folder.
If you've created a list subfolder under My Lists in which you want to import the new subscribers, click that subfolder.
- Double-click the desired list (or select the list and then click the Open List button in the toolbar).
- Click the Import button, which opens the Import Subscriber wizard.
- Click Next in the wizard's introductory dialog box.
- Read the content of the Opt-in Certification dialog box that appears next. If you have verified that every subscriber in your import file has agreed to receive emails from you, select the I agree check box, and click Next.
- Complete the Identify Source File dialog box that appears next, as follows:
| Field | Description | | Upload Source | The import wizard shows you two upload options: Your Computer and FTP. To use a file that you've uploaded to the FTP site, type the filename in the FTP field. See the Enhanced FTP Guide for details on using the FTP option. If the file you want to import is located on your hard drive, click the Browse button and locate the import file on your computer. Only files located on a locally mapped drive are supported ( C:\, D:\, etc.). You cannot upload a file from a UNC path (such as \\ abcfiles\).
| | Data Format | Select one of the following : - The CSV radio button
- The Tab Delimited radio button
- The Other Delimited radio button. If you select this value, you must enter a 1-character delimiter in the field.
| | File is encrypted | If the advanced feature for encrypted imports is enabled in your account, you'll see this check box. Select the check box if the import file you're using has been encrypted. | | Updated Options | Add new subscribers and update subscribers that already exist Add new subscribers but do not update subscribers that already exist Update existing subscribers but do not add subscribers that do not exist
|
- Click the Next button in the Import Subscriber Wizard dialog box.
The application reads the import file, which may take several moments depending on the size of the file.
Note: The data in the import file is not yet brought into your account.
The Map Attributes dialog box appears next. This dialog box consists of two sections:
| Section | Description | | Source | The Source section lists the data found in the first row of your import file. Labels that are grayed out have been mapped to attribute fields by default; labels shown in black font have not been mapped. If the first row of your import file is a header row, you'll see the column labels from your import file shown in the Source section. In this case, make sure that the First row is header check box is selected so that the application does not attempt to import that row as subscriber data. You can view all the data in your import file by means of the buttons below the Source section. Click the Next button below the Source section to view the next row of data in your file. Click Previous to go back to the row that was just displayed.
| | Destination | The Destination section lists the profile and preference attributes currently defined in your account, separated into those that have been set up as required and those that have not. If the header row in your import file contains labels that exactly match attribute names, the application has mapped those labels to the attributes for you. The Mapped From column in the Destination section shows the label from your import file that's been mapped to the attribute shown in the Attribute column. As you scroll through the rows of data in your import file by using the Previous and Next buttons, the Destination section updates to show how the data is mapped to the attribute fields.
|
- If a field from your import file has not been mapped for you to an attribute, map it as follows:
- Click the field in the Source section. (Whether you're viewing the header row labels or a row of actual subscriber data in the Source section when you click the source field is unimportant. In either case, you're mapping all data from that column of your import file to the attribute.)
- Click the corresponding attribute in the Destination section.
- Click the Map button.
The column of data is now mapped to the attribute, as indicated by the grayed-out value in the Source section and the Mapped From value in the Destination section.
You also have these additional options:
- Remove a single mapping: To unmap an attribute from the import file field to which it's currently mapped, click the attribute row in the Destination section and then click the Unmap button.
- Remove all current mappings: If you want to remove all the current mappings (that is, delete all values from the Mapped From column in the Destination section), click the Clear Map button.
- Return to the original mappings: If you want to undo all changes you've made to the default mappings (the mappings that were in place when you first opened this dialog box), click the Default Map button.
Any fields still displayed in black font rather than gray in the Source section represent data that isn't imported.
- When satisfied with your mappings, click the Next button at the bottom of the dialog box.
Note: Any attributes that have been defined as required must be mapped to fields in your import file. You can't continue with the wizard until these fields are mapped.
The Confirm Mappings dialog box appears next, summarizing your selected mappings and the number of columns (fields) and records (subscribers) in your file that the application attempts to import.
- If you want to be notified when the import is complete, select the Email me upon import completion check box and enter your email address in the Email address field. Your email notification also includes a log of any subscriber records that could not be imported.
- Click the Begin button.
The application begins the process of importing your data. How long the import takes depends on the size of your import file.
The final dialog box of the wizard appears.
| If you chose to be emailed upon completion: | This dialog box appears immediately and confirms that the import has begun. Click Finish to exit the wizard. After the import is completed, you'll receive an email with the results of the import (if the file does not exceed 5MB in size. If the export file is over 5 MB in size, the system delivers it to your enhanced FTP account regardless of what you select here. If you do not have an enhanced FTP account, the system returns a message saying that you should call ExactTarget.) | | If you did not request an email upon completion: | The dialog box appears after the import process has been completed. The text of the dialog box shows you the results of the import and includes a Download report button for you to view the details behind the records that could not be imported. Click Download report to open the log file showing the results. You also have the option of opening the list into which you imported the new subscribers. Select the Take me to my list check box, and the list opens when you click Finish.
|
If you imported using an Enterprise account, the email address appears on the ExactTarget global unsubscribe list or on your account-level unsubscribe list.
For best practices and tips on creating and executing the import file, see Imports.
You will also need to create additional attributes for your subscribers in order to use information like account numbers and addresses. How to Create Profile and Preference Attributes
Every account includes a standard set of basic profile attributes. You can create a number of attributes (your limit is specified in your account contract) and manage them in the Profile Management and Preference Management sections.
The steps for creating a profile or preference attribute are the same. Profile attributes are created and accessed from the profile management workspace, and preference attributes are created and accessed from the preference management workspace, both of which are in the Subscribers area of the application.
Note: If the attribute is a yes or no value, create a preference attribute. If the attribute requires more complexity, create a profile attribute.
Follow these steps to add a new profile or preference attribute to your account:
Note: If the advanced profile/preference management feature is not enabled in your account, you can't see these sections in the navigation pane.
If you're creating a profile attribute, all profile attributes defined in your account appear in the profile management workspace on the right. If you're creating a preference attribute, you see the preference management workspace on the right, with all preference attributes that are defined in your account.
Note: In addition to basic alphanumeric characters, certain special characters can be used in the values that you enter as a subscriber value for an attribute. The special characters represented by the ASCII decimal ( dec) codes 32 through 254 are supported.
This attribute is now available for use in defining groups, dynamic content, and personalized substitution strings.
- Click the Subscribers tab.
- Click Profile Management or Preference Management.
- Click Create Attribute, which opens the Attribute Properties dialog box.
- Define the properties for this attribute.
- Click OK in the Attribute Properties dialog box when done.
Note: If you marked the new attribute as a required field, all subscriber imports now must include this field. You may want to include a default value so that records can be saved even if a value isn't provided.
Creating the Sendable Data Extension
You can also send eStatements to your customers using data extensions. Data extensions contain information not defined in subscriber attributes, and you can use them to include additional information in your sends.
How to Create a Data Extension
Use the following steps to create a data extension. After you complete this procedure, you can import data to the data extension and create a data relationship.
- Click the Subscribers tab from the navigation bar.
- Click Data Extensions.
- Click the Create button. You have three options:
- New Data Extension: creates a brand new data extension
- Copy of an Existing Data Extension: creates a copy of an existing data extension's schema
- Data Extension based on a Template: creates a data extension based on a template in the application that you select
- Complete the information in the Properties section:
- Name - Name of the data extension. Use this name to identify the data extension in the ExactTarget application.
- External Key - A unique value that identifies the data extension. Use this value to identify the data extension with an API call.
- Description - Description of the data extension. Use this description to further help identify the data extension within the ExactTarget application.
- Complete the information in the Type section.
- Used for Sending checkbox - Indicates whether you intend this data extension to have messages sent to it. This checkbox determines whether the data extension is available to use as part of a user-initiated send.
If you select this value, you must complete the following fields: - Relates to subscribers on - If you select the Used for Sending checkbox, this field determines the field in the data extension that relates to the Subscriber table.
- Used for Testing checkbox - If you select the Used for Sending checkbox, this field indicates whether you intend this data extension to have test messages sent to it.
NOTE: You must include a field with the Email Address data type for email sends or a Phone data type for SMS sends in a sendable data extension with no other information that relates to an existing subscriber. If the Email Address or Phone data types are not present, the subscriber will not receive any messages sent using the data extension. - Complete the information in the Fields section for each field. Click Add to create a new field in the data extension.
- Name - The name of the column
- Data Type - The data type of the contents of the field. Valid values include:
- Text - A combination of letters, numbers, and spaces.
- Number - An integer. Decimal values are not supported.
- Date - A system date. You can use an AMPscript function to format this value when you present it in a message.
- Boolean - A 0 or 1 value.
- Email Address - An email address. A field of this type must exist in order for you to send an email to a data extension. Note: ExactTarget does not verify that the value in this field is a valid email address when importing data.
- Phone - A phone number. This data type accepts accepts any string with 10 or 11 digits in it and strips out non-digit characters.
- Decimal - A number with a decimal point.
- Length - Maximum number of characters, including spaces, you can import into this column. If you select the Decimal data type, you specify both the total maximum number of characters as well as the how many of the total appear after the decimal point. For example, if you define a decimal field with a length of 18,2, the two characters that appear after the decimal point are included in the 18 character total limit.
- Primary Key - Determines whether the ExactTarget system considers this field to be the primary key of the table.
If you select this checkbox, the system requires that the value in this field be unique so it can use this field to uniquely identify a row. If you select this checkbox for more than one column, then the combination of the values in the columns must be unique. If you do not select this checkbox, the system does not require the value in this field to be unique. - Nullable - Determines whether this column can be empty.
If you select this checkbox, you can import a NULL (empty) value for this column. If you do not select this checkbox and you try to import a NULL value for this column, the system will respond as you specify in the Skip Rows with Bad Data field on the import definition. - Click Save.
What Fields To Include
You must include the information necessary to conduct the sends, including the customer's name, email address, and location of their eStatement. You should also include the customer's account number and type in order to use that information in the email and keep track of the customer's information. You might also have customers with multiple accounts, so separate account numbers and types makes sure they get all applicable statements.
Populating the Data Extension
To bring information into the sendable data extension, create a new import activity to move information from your source file to the data extension.
How to Create an Import Activity
If the file to import is encrypted or compressed, you should create a file transfer activity to correspond with this activity. Before you begin this procedure, you must create a subscriber list or data extension into which to import the data. After you complete this procedure, you can start the import activity or include the import activity in a program.
- Click the Interactions tab on the navigation bar.
- Click Activities.
- Click Import.
The Import workspace appears. - Click Create from the toolbar.
- Complete the information in the Properties section:
- Name - The name of the activity. You use this name to identify the activity in the application. Subscribers cannot see the name.
- External Key - A value you choose that uniquely identifies the activity. You use this value to identify the activity when using the API.
- Description - The description of the activity. You use this description to further help identify the activity within the application. Subscribers cannot see the description.
- Complete the information in the Source section:
- File Location - The location where the system can find the file.
If you select Salesforce Objects & Reports: - Salesforce Data Source Type - The type of Salesforce entity from which you import the data. Valid values include:
- Salesforce Object or Report - After you select the Data Source Type, the window shows the objects or reports in your integrated Salesforce account.
- Age of Import Data - The scope of the data to import. Valid values include:
- Import All Data - Imports all data regardless of age.
- Import Modified Data Since Last Import Date - Imports only data that has been modified since the date you enter in the date field.
If you do not select Salesforce Objects & Reports: - File Naming Pattern - The name or naming pattern of the file. You can enter a static name or you can include placeholders for the date. See the following table for examples.
| File Naming Pattern | The System Looks For | Example | | subscribers.csv | a file named subscribers.csv | subscribers.csv | | subscribers%%Month%%.csv | a filename where the last two characters are two-digit month. | subscriber12.csv | | subscribers%%Year%%%%Month%%%%Day%%.csv | a filename whose format is four-digit year, two-digit month, and two-digit day. | subscriber20101206.csv | Note: You can only use the following three substitution values: %%Year%%, %%Month%%, and %%Day%%. - File Type - The type of the file to import. Valid values include:
- Comma Delimited (CSV) - If you choose this file type, the value that you enter in the File Naming Pattern must have a .CSV extension
- tab delimited
- Other - if you choose this file type, you must enter a 1-character delimiter in the Other Delimiter field.
- Other Delimiter - A 1-character delimiter you choose. You must complete this field if you select Other in the File Type field.
- Destination Type - The type of object in the system to import the information in to. Valid values include:
- Subscriber List - If you choose this value, you must select a subscriber list.
- Data Extensions - If you choose this value, you must select a data extension. Additionally, in the Import Action Settings section, two checkboxes appear.
- Skip rows with bad data
- Respect double quotes ('') as a text delimiter - If you select the checkbox, the system treats double quotes as a text delimiter. If you do not select this checkbox, the system ignores double quotes in your import file.
- Complete the information in the Import Action Settings section:
- Update Type - Determines how the import uses the content of the import file. Valid values include:
- Add and update - If the import file contains records with a primary key (or email address) that does not already exist in the subscriber list or data extension, the import create a new record for that information. If the import file contains records with a primary key (or email address) that does already exist in the subscriber list or data extension, the import updates the record to match what's in the import file.
- Add only - The import creates new records for primary keys that do not already exist in the data extension or subscriber list and ignores records whose primary keys already exist.
- Update only - The import updates information for records whose primary key already exist in the data extension or subscriber list and ignores records whose primary keys do not already exist.
- Validation- Select a date format from the dropdown menu in this section to use as part of the import. Choose the date format that most closely matches the region from which you are conducting the import.
When you import dates into lists or a data extension, the date format used in the file must be in the same format as indicated on your ImportDefinition. If your ImportDefinition date format is different from the dates in the file,you will received Date Field validation errors. For example: if English (United Kingdom) is selected and a date field in the file contains 01/22/2010, the row will fail on validation. For English (United Kingdom), January 22nd, 2010 should be represented as 22/01/2010. The rules in this list will be referenced by the import to validate the dates in the file By default, the import activity skips any rows with bad data and imports the rest of the file. Please contact your ExactTarget representative if you have any question as to how your information will be altered during an import activity like this one. - Skip import if last import was less than [x] hours checkbox - Determine whether the system does not import the file if the last successful import was more recent than the threshold. If you select this checkbox, you must enter a threshold, in hours, of how recent a successful import of the file must be in order for the activity to skip importing the file.
- Fail import if file is older than [x] hours. Allow System Buffer of [0] hours. - Determines whether the system returns an error if the file to import is older than the threshold.
If you select this checkbox, you must enter a threshold, in hours, of how old a file can be and still be imported. You also must enter an offset value, in hours, to be added to the threshold. The offset value accounts for differences in time zone between the application and the system that contains the file to import. - File Mapping - Determines how the import identifies the correct destination for each column in the import file. Valid values include:
- Map using column headings - the import will update the columns in the subscriber list or data extension with the information in the import file by matching the column headings.
- Map by ordinal - the import will update the first column in the subscriber list or data extension with the first column in the import file, the second column with the second column, and so on. See Import Activity Known Issues.
- Map manually - if you choose this option, you upload a sample file that maps using column headings and the import uses the same pattern to import your import file.
- Complete the information in the Import Completion Settings section:
- Delivery Location - Determines where the system delivers a file with the completion information and exceptions, if applicable.
- Has Column Header - Indicates whether the system to interpret the first row of the import file as a header row or as a data row.
- Send notification email checkbox - Determines whether the system sends a notification emails when the import is complete. If you select this checkbox, you must enter the email address to send the notification.
- Click Save.
Using Publication Lists
To use a sendable data extension, you must use a publication list in conjunction with that send. Publication lists allow you to manage subscription information for your customers.
How to Create a Publication List
Note: To share your publication list, you must place it in the Shared Items folder.
- Click the Subscribers tab.
- Click my subscribers.
- Click Publication Lists.
The Publication Lists workspace opens. - Click the Create button.
- Provide a name and description for the publication list.
- The name and description appear in the Available Publications section of the subscription center.
Note: If the list is used for SMS, you must name your publication list with no spaces. Add information to the description that identifies this publication list is used for SMS. - (Optional) Check the Public checkbox to display the publication list in the subscription center.
- Click the Save button.
- (Optional) Click the checkbox next to the publication list and click the Move button
- Click the folder in which you want to store your publication list and click the OK button.
Note: Select the Shared Items folder under the Subscribers tab if you want to share the publication list. - (Optional) If you are sharing the publication list, select the Permissions menu item and set roles and permissions for the publication list.
How to Apply a Publication List to a Send
You can apply publication lists to user-initiated and triggered emails sent through the Interactions tab by completing the following steps:
- Select Messages, Email, User-Initiated from the Interactions tab.
The User-Initiated Emails workspace opens. - Click the desired email name.
- Click the Edit Audience link.
The Send Definition Audience workspace opens. - Select your audience for a target audience and (optional) for an excluded audience.
- Select any publications to opt-out of this email.
- Click the Save button to save this information.
The publication list is applied the next time the email is sent.
Creating the Attachment
You can attach several types of documents (detailed in the Email Attachment AMPscript section below) to your eStatement send, although eStatements commonly use .xls or .pdf formats. These documents must be stored on a web server, enhanced FTP site, or in your ExactTarget portfolio.
Creating the Email
Personalization
You can personalize the eStatement email to insert the customer's first and last name, account number, or other information. Review the Personalization document for more information on personalizing emails.
Email Attachment AMPscript
The information below demonstrates how to add an attachment to an email send.
AttachFile(S1,S2,S3,B1,S4,S5,N1)
NOTE: AMPscript email attachments must be enabled in your account before you can use this function. Contact ExactTarget if you would like this feature enabled in your account. You should also contact ExactTarget to adjust the threshold of errors that cause the send job to stop prematurely. This could be helpful in preventing a single error from stopping the entire job.
Attaches a file to an outgoing email message and can include a link to the file when you view the email as a web page:
Arguments
- S1 Indicates whether to pull files from an HTTP source, the ExactTarget Enhanced FTP site, or the portfolio. Valid values include:
- S2 Indicates from where the function pulls the attachment.
- If S1 is HTTP, S2 is the URL of your file.
- If S1 is FTP, S2 is the name of the file in the Import folder of your Enhanced FTP site.
- If S1 is Portfolio, S2 is the External Key of the item in your Portfolio folder.
- S3 Indicates the name to give the file when it is attached to the email. This argument is optional and will use the current attachment's name if none is specified.
- B1 Indicates whether a link to attached file is seen in View As A Web Page. This argument is optional and only used if S1 is HTTP.
- S4 Sets the URL of the attachment link to be used for View As A Web Page. This argument is optional and only used if S1 is HTTP.
- S5 Sets the text for the attachment link to be used in View As A Web Page. This argument is optional and only used if S1 is HTTP.
- N1 Sets the number of days the link attachment will be seen in View As A Web Page. This argument is optional and only used if S1 is HTTP.
Examples
The following example attaches a PDF document from a website to your outgoing email. The email also includes a link to the file in View As A Web Page with the text "Click here to download your catalog." That link expires from View As A Web Page after four days.
%%=AttachFile("HTTP","http://example.com/catalog.pdf",true,"http://example.com/catalog.pdf","Click here to download your catalog",4)=%%
If you want to rename the attachment, enter the optional filename argument as shown below:
%%=AttachFile("HTTP","http://example.com/catalog.pdf","newFileName.pdf",true,"http://example.com/catalog.pdf","Click here to download your catalog",4)=%%
The next example attaches a Word document from the import folder of the ExactTarget Enhanced FTP site. It also concatenates a new filename from the recipient's full name and the string "NewCatalog.doc" at the time of attachment.
%%=AttachFile("FTP","productCatalog.doc",Concat(FullName,"NewCatalog.doc"))=%%
The following file types can be attached to emails sent through ExactTarget :
- Microsoft Word documents (.doc, .docx)
- Microsoft Excel documents (.xls, .xlsx)
- Microsoft Powerpoint documents (.ppt, .pptx)
- Adobe PDF documents (.pdf)
- ZIP archive files (.zip)
- Compressed archive files (.rar)
- PNG images (.png)
- GIF images (.gif)
- JPEG images (.jpg, .jpeg)
- TIFF images (.tif, .tiff)
Account or Identification Numbers
As part of the email, you may wish to include part of the customer's account or identification number to help them identify the account to which the eStatement refers. However, including the entire number may present a security risk, so you may wish to only include the last four digits of the account number. That information identifies the account to the user, but it prevents other parties from gaining unauthorized access to the account information. Use the AMPscript function below to shorten the ID number when it is inserted into the email from the subscriber list or the sendable data extension.
Substring(S1, I1, I2) Returns the portion of the specified string starting with the specified character position and no longer than the specified length. If the specified character position is greater than the length of the specified string, an empty string is returned. Arguments - S1 The string from which to return a portion
- I1 The character position at which to begin the substring
- I2 Maximum length of the substring
Example
%%=Substring("abcdef",2,2)=%%
System returns: bc Now, apply the example above to an account number. If your customer has an account number of 5555-5555-5555-5564, you can use the Substring() AMPscript function to shorten that to the last four digits after pulling the information from a subscriber list or sendable data extension:
%%[
VAR @AccountNumber
SET @AccountNumber = IDNumber
Substring(@AccountNumber, 16, 4)
]%%
The above AMPscript pulls the IDNumber from the list or data extension into the variable, then uses that variable as the string value from which to pull the last four digits from the account number. That code can be inserted wherever you would like the digits to appear, such as following the text ACCOUNT NUMBER ENDING IN:.
Tracking Your Sends
Who Received and Opened the Email
To view the tracking for your eStatement sends, click the email send and select View Data. You will see the tracking information for that send in the tracking results workspace.
Overview Tab The Overview tab contains graphs with information relating to the email send. Summary

The Summary section identifies the email that was sent.
| Field | Description | | Job ID | The ID number the application automatically generated for this email send. Unless you specified otherwise, the email sends sort according to Job ID in the tracking grid. | | Name | The name of the email content sent. | | Subject | The subject line used for the send. If the subject line contains a personalization string, a personalization string icon appears in this field. | | Date Sent | The date and time of the email send in Central Time. | | Total Sent | The number of email messages sent. This value is the number of subscribers in the list(s), group(s), and/or data extension(s) that were targeted for this send, minus any excluded subscribers. | | Lists | The names of the lists, groups, and data extensions that were targeted for this send. | | Exclusion Lists | The names of the lists, groups, and data extensions that were excluded from this send, if applicable. | | Data Extensions | The name of data extensions that were targeted for this send, if applicable. |
Send Performance

The Send Performance section contains information about the deliverability of the send. A pie chart shows the total number of email messages delivered, the number of soft bounces, and hard bounces. To learn more about bounces, see Bounce Mail Management.
Note: If you use different categories for bounces, you will see different values in this section.
| Field | Description | | Delivery Rate | The percentage of emails that were successfully delivered versus the emails that bounced. | | Total Bounces | The number of email messages that bounced regardless of whether it was a soft or hard bounce. | | Hard Bounce | The number of email messages that were not delivered due to permanent errors. | | Soft Bounce | The number of email messages that were not delivered due to non-permanent errors. | | Delivered | The number of email messages that did not bounce. |
Open Performance

The Open Performance section contains information about the subscribers opening the send. A bar graph shows the number of total opens and unique opens against the number of messages delivered.
| Field | Description | | Delivered | The number of email messages that did not soft bounce or hard bounce. | | Total Opens | The number of times the email message was opened. This value includes multiple opens by the same subscriber. | | Unique Opens | The number of unique email messages from this send that were opened. This value includes only one open per subscriber. |
Inbox Activity

The Inbox Activity section contains information about the opens, clicks, and unsubscribes related to the send. You can click the drop-down menu next to viewing and select:
- Current Activity - displays the data in a bar graph
- Activity Over Time - displays tracking data for 14 days after the date of send. You can choose to include or not include certain information such as opens, clicks, forwards, etc.
These fields display when you view Current Activity:
| Field | Description | | Opens | The total and unique number of opens your email send received. | | Clicks | The total and unique number of clicks your email send received. | | Forwards | The total and unique number of forwards your subscribers performed. Note: A unique click only appears in this field if it was the first unique click of the email. For complete click information, view the Click Activity Tab. | | Conversions | The total and unique number of c your email send received. | | Surveys | If you included a survey in your email send, this shows the total survey submissions you received as well as the unique number of subscribers who took the survey. | | Unsubscribes | The number of subscribers who unsubscribed from the send. This section may also contain values for Forward To A Friend, Conversion, and Surveys, depending on the email message and your account setup.
|
Note any bounces that occurred as part of your sends. If you are legally required to send information to your customers and these emails do not go through, you need to ascertain to whom these sends failed and follow up with additional emails or paper copies. Following Up with Bounced Emails
If you are legally required to follow up bounced emails with paper copies, you can use measures combined with data filters to pull back those customers who experienced hard bounces. For example, you can use the system-defined Total Number of Hard Bounces in 30 Days measure to see who experienced hard bounces during that time period. You can then include that measure in a data filter to create a list of customers with hard bounces and send those customers paper copies of their statements. The measures and data filters can be placed in a program to regularly pull back the information and place it in a file for review.
Reply Mail Management
Because users may reply with questions or requests regarding these statements, you can use reply mail management to send acknowledgments of replies and forward along requests to the appropriate company representatives.
Best Practices
Manage Sign-up on Authenticated Pages
Because your customers will likely share or verify sensitive personal information as part of the sign-up process, make sure that all communications with your company are secure in order to prevent theft of that personal information. Furthermore, you want to use authentication to prevent unauthorized users from entering their email address as the location to which to send eStatements.
Recreate View of Paper Statement
If your customers received paper statements in the past, they have likely become used to the placement and organization of information. Keeping a similar layout will help them recognize the authenticity of the information and find what they are looking for much more quickly. You can use PDF files to keep the layout precisely the same, or you can attempt to recreate the layout in a different file. However, it is best to keep the information as similar as possible.
Choose Bulk or Single Sends
Depending on the needs of your business and your customers, you can set your eStatements to send either in bulk or as single sends. If all customers use the same billing cycle, a bulk send can ease the amount of time you spend on the process. However, if each send requires personal attention, you can choose to maintain them as single sends.
Always Keep Deliverability In Mind
Emails with attachments can cause problems with deliverability of emails, so you need to make sure that your messages adhere to all other deliverability guidelines in order to best assure the email arriving in your customers' inboxes. Consult your ExactTarget deliverability specialists to analyze and improve your eStatements.
Track Unsubscriptions
If a customer unsubscribes from an eStatement send, you may still be required to provide this information to them in paper form. Track the unsubscriptions from your sends to make sure that all customers get the information they are legally required to receive, either electronically or in paper form.
Use Reply Mail Management to Monitor Replies
Customers will send you replies or inquiries regarding these eStatements, and you need to be able to at least monitor these communications to make sure all requests and needs are taken care of. Use reply mail management to acknowledge the receipt of your customer communications and route their replies to the appropriate inbox.
Avoid Inserting Marketing Messages in Transactional Sends
ExactTarget sends eStatements as transactional sends, as they represent activity related to a financial transaction. Therefore, you must maintain the integrity of the transactional send by refraining from inserting marketing messages in these sends. Otherwise, you risk violating CAN-SPAM regulations relating to the sending of unwanted marketing material. You can allow your customers to request additional marketing information as part of their opt-in process, but you should refrain from sending such material unless your customers explicitly opt-in for that information.
This page was last updated by Ryan Williams on Tue, 13 Sep 2011 13:50:18 GMT.
If you require assistance with the ExactTarget application, please contact Global Support. If you wish to send Ryan direct feedback, fill out the form below:
| File | Size | Date | Attached by | |
|---|
  |  | BounceImage.png No description | 48.31 kB | 07:00, 13 Sep 2011 | Admin | |   |  | CurrentInboxActivity.png No description | 24.13 kB | 07:00, 13 Sep 2011 | Admin | |   |  | DE.png No description | 64.77 kB | 07:00, 13 Sep 2011 | Admin | |   |  | DEImport.png No description | 42.92 kB | 07:00, 13 Sep 2011 | Admin | |   |  | DEViewData.png No description | 33.66 kB | 07:00, 13 Sep 2011 | Admin | |   |  | Email.png No description | 48.3 kB | 07:00, 13 Sep 2011 | Admin | |   |  | eStatementFlowchart.png No description | 39.7 kB | 07:01, 13 Sep 2011 | Admin | |   |  | eStatementsCorrectAMPscript.png No description | 38.79 kB | 07:01, 13 Sep 2011 | Admin | |   |  | FTAF.png No description | 9.3 kB | 07:00, 13 Sep 2011 | Admin | |   |  | InboxActivityOverTime.png No description | 47.42 kB | 07:00, 13 Sep 2011 | Admin | |   |  | OpenPerformance.png No description | 8.34 kB | 07:00, 13 Sep 2011 | Admin | |   |  | OverviewFigureWithExportButton.jpg No description | 151.34 kB | 07:00, 13 Sep 2011 | Admin | |   |  | SendPerformanceBlockBounces.png No description | 6.5 kB | 07:00, 13 Sep 2011 | Admin | |   |  | SummaryModule.png No description | 31.03 kB | 07:00, 13 Sep 2011 | Admin | |   |  | Unengaged.png No description | 6.08 kB | 07:00, 13 Sep 2011 | Admin | |
|