<< Click to Display Table of Contents >>
Sample Embedded Command documents
Sample code 1 - Embedded addresses to a single user
%%[startdocument]
%%[email: hhunter@equisys.com]
%%[subject: sales query]
%%[template: test.zdt]
%%[excludepage]
%%[startbodytext]
Dear Customer.
Thanks for your interest in our product. Please see attached PDF.
Regards the Sales Team
www.equisys.com
%%[endbodytext]
Sample code 2 - Embedded addresses within a mail merge template
%%[startdocument]
%%[email: «Email_address»]
%%[stationery: Equisys letterhead.zds]
%%[attachment: Getting started.zda]
%%[subject: Support contracts due for renewal]
%%[startbodytext]
Dear «Salutation» «Last_Name»,
It has come to our attention that your current contract is due to run out on the «day»th of June 2005.
Please fill in the attached form should you wish to renew you policy.
With regards
Technical Support
%%[endbodytext]
Sample code 3 - Dynamic Fields within a mail merge template
An original document containing the following commands:
%%[field: salutation, Hal]
%%[field: company, Widgets Inc.]
%%[field: quote_number, 1234]
%%[field: myname, Sam]
%%[Outputfilename: Quotation %%[quote_number] for %%[company]]
Document Template
When merged to a document template containing the following text within the email body:
Dear %%[salutation, Sir/Madam],
I'm pleased to attach your quotation as discussed along with our conditions of sale and product brochure.
Our quotation number for your reference is %%[quote_number], please include this on your sales order.
Regards,
%%[myname]
Expected Output
Zetadocs creates a PDF file called: Quotation 1234 for Widgets Inc.pdf
Zetadocs creates the following email message body:
Dear Hal,
I'm pleased to attach your quotation as discussed along with our conditions of sale and product brochure.
Our quotation number for your reference is 1234, please include this on your sales order.
Regards,
Sam
Sample code 4 - Documents sent as a batch
Note: These embedded commands apply specifically to the Batch option and will work only if you have purchased a licence for automation.
%%[startdocument]
%%[name: «Name»]
%%[organization: «Company»]
%%[email: «Email_address»]
%%[fax: «Fax_number»]
%%[deliveryoption:Email,Fax]
%%[batchpreview:on]
%%[stationery: Equisys letterhead.zds]
%%[attachment: Getting started.zda]
%%[subject: Support contracts due for renewal]
%%[startbodytext]
Dear «Salutation» «Last_Name»,
It has come to our attention that your current contract is due to run out on the «day»th of «Month» 2007.
Please fill in the attached form should you wish to renew you policy.
With regards
Technical Support
%%[endbodytext]
Related topics
What embedded commands are there?
How to automate document sending