This shows you the differences between two versions of the page.
Last revision Both sides next revision | |||
developers:templates:files [2014/10/16 13:32] Jaco van Wyk created |
developers:templates:files [2014/10/18 12:38] Jaco van Wyk |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Template Files ====== | ====== Template Files ====== | ||
+ | |||
+ | You can attach files to your templates just by using the "@attachment:<filename>" special code at the top of your template wiki. | ||
+ | |||
+ | ===== Uploading your files ===== | ||
+ | |||
+ | Uploading the files is easy. Simply go to [[https://billing.snapbill.com/files]] and make sure to use the filename that you want to appear in the email. Be sure to set it to not encrypt, and if you ever want to update the file just choose Replace in the "what to do if file exists" dropdown. | ||
+ | |||
+ | ===== Linking to the file from templates ===== | ||
+ | |||
+ | As mentioned before you need to use the @attachment tag, and simply list it at the top. For instance if you want to attach policy.pdf, your file should look like: | ||
+ | |||
+ | <code> | ||
+ | @subject:Welcome to SnapBill | ||
+ | @attachment:policy.pdf | ||
+ | |||
+ | == Hi $client->firstname == | ||
+ | Welcome to ...... | ||
+ | </code> | ||