Difference between revisions of "Email Templates"
Line 6: | Line 6: | ||
A list of the data fields available to you when composing an email are shown below the editor. The merge fields you can use depend upon what the email is related to and so you can't always use the fields from one template in another - only those of the same group. | A list of the data fields available to you when composing an email are shown below the editor. The merge fields you can use depend upon what the email is related to and so you can't always use the fields from one template in another - only those of the same group. | ||
+ | |||
+ | ==Adding an Attachment== | ||
+ | If you wish to add an attachment to an email, open the file includes/class.phpmailer.php and on line 390, add: | ||
+ | |||
+ | if ($this->Subject=="Hosting Account Welcome") $this->AddAttachment("/home/username/filename.pdf"); | ||
+ | |||
+ | Change the subject value and filepath as appropriate for the file you want to send and the appropriate email to send it with, save and then upload. You can add multiple instances of the line if required. |
Revision as of 16:58, 8 February 2010
The email templates allow you to customise the messages that go out to your customers when actions occur inside WHMCS. Every email that goes out to a customer can be customised here.
To edit an email template, go to Setup > Email Templates and click the edit icon next to the template you want to change.
You can also toggle plain text vs. HTML email sending on a per email basis from the editor page.
A list of the data fields available to you when composing an email are shown below the editor. The merge fields you can use depend upon what the email is related to and so you can't always use the fields from one template in another - only those of the same group.
Adding an Attachment
If you wish to add an attachment to an email, open the file includes/class.phpmailer.php and on line 390, add:
if ($this->Subject=="Hosting Account Welcome") $this->AddAttachment("/home/username/filename.pdf");
Change the subject value and filepath as appropriate for the file you want to send and the appropriate email to send it with, save and then upload. You can add multiple instances of the line if required.