Use a reply template
Fills the subject and body of your reply with a pre-written text: acknowledgment of receipt, request for documents, answer to a frequent question. The template variables are replaced with the information from the email, its third party and its contact.
Steps
- Open the email in Lead Mode and click Reply (or Reply all, or Forward).
- In the Select a template list, choose the desired template.
- The subject and message are replaced with those of the template, followed by your signature.
- Review, complete if needed, then click Send reply.
Warning: the template replaces everything
Choosing a template replaces the subject and the whole message:
- the quote of the original message disappears;
- the subject loses its "Re: " if the template does not contain it;
- anything you had already typed is lost.
So choose the template before you start writing. Switching back to "No template" does not restore the previous text: close the form with Cancel and reopen it to start again from the quote.
Where to create templates
Capmail uses Dolibarr email templates. They are created in Home > Setup > Emails, Email templates tab. For a template to appear in Capmail, it must:
- be linked to the Third party object type;
- be active.
A private template is only offered to its author. A public template is offered to everyone.
Available variables
Write them as they are in the subject or body of the template, they are replaced when you choose it.
Always available:
__SENDERNAME__and__SENDEREMAIL__: the name and address of the person who wrote to you;__REF__: the reference of the email in Capmail;- the general Dolibarr variables, such as those of your company and your user.
If the email is linked to a third party:
__THIRDPARTY_NAME__,__THIRDPARTY_NAME_ALIAS__,__THIRDPARTY_EMAIL__,__THIRDPARTY_PHONE__,__THIRDPARTY_FAX__,__THIRDPARTY_ADDRESS__,__THIRDPARTY_ZIP__,__THIRDPARTY_TOWN__,__THIRDPARTY_COUNTRY__,__THIRDPARTY_CODE_CLIENT__,__THIRDPARTY_ID__.
If the email is linked to a contact:
__CONTACTFIRSTNAME__,__CONTACTLASTNAME__,__CONTACTEMAIL__,__CONTACTPHONE__,__CONTACTMOBILE__.
So link the email to its third party and its contact before choosing the template, otherwise these variables are not replaced.
Good to know
- Templates are only offered in the reply form. The New email form has no template list.
- Files possibly attached to a Dolibarr template are not added to the reply: the reply form does not accept attachments.
If it does not work
- The list only offers "No template": no active Third party type template exists, or the only existing ones are private to another user.
- Variables appear as they are (
__THIRDPARTY_NAME__in the text): the email is not linked to a third party or a contact, or the replacement failed and the raw template was inserted. Link the email, close the form with Cancel, reopen it and choose the template again.