SmartTemplate4

From version 0.9.3 onwards, SmartTemplate4 supports integration with the Stationery addon. This is made possible through some changes that Arivald, the owner of the Stationery extensions kindly added, and is available from version 0.8 of Stationery.

Official Stationery page: Stationery for Thunderbird

What is Stationery?

Stationery is an addon that allows adding "outlook-style" stationery to your emails. What's more, it can be very well used to create powerful mail templates for repetitive tasks such as sending out standard mails or replies; one thing that is missing in its functionality is the ability to add in a variety of mail header based variables, this is where SmartTemplate4 comes in.

Stationery uses HTML files as templates for mail. It allows using different templates in replies / forwarded mail and makes it possible to select the template using a simple click on a chevron beside the reply button:
template selection

Stationery also adds a handy html editing pane to the composer window; this alone makes it worth installing, as it allows both simplifying and learning the html behind your email compositions:
template selection

How does SmartTemplate4 improve Stationery?

With the new global option "Support Stationery addon", SmartTemplate4 is now able to replace variables from within Stationery files, like it does in your SmartTemplate4 settings. Once a user selects a Stationery template, the (identity-based) template of SmartTemplate4 will be ignored, and it will instead do its replacement work on the template provided by Stationery. This means you can now use all variables that you have been using from within SmartTemplate4, also within the Stationery.

To enable stationery support, go to Stationery Options, Global Settings and activate the option "Support Stationery addon":
enable stationery support

We believe this is a very powerful feature which will benefit the users of both addons. I am already using it on a daily basis for replying to support mails.

How do I use SmartTemplate4 with Stationery?

You can use pretty much all variables directly in your stationery files. When you select a Stationery during writing or replying to mail, then the SmartTemplate4 templates which are bound to the account identity of your current email will be temporarily ignored. This means you do not need any special settings in quote / template as your Stationery file supplies everything.

Instead SmartTemplate4 will search and replace the special header variables in the Stationery itself. This turns Stationery into a full blown templating application.

Additionally, you can use the following powerful variables to control the content and behavior of your Stationery Template:

For a more complete list of variables that you can use in your Stationery, please read the variables page.

Example of a Stationery with SmartTemplate4 variables

Here is an example of a Stationery I use when I write support email. The quoted text is automatically inserted into the inner container via %quotePlaceholder%. Also, %subject% is used to show the conversation title in the top. Note that the signature (green box) is injected into the stationery using the %sig(HTML)% / %sig(Text)% variable. The signature itself also contains SmartTemplate4 variables (%identity(name)%).

stationery example

We hope you enjoy this new and powerful features of SmartTemplate4.

Please, leave some feedback at the Mozilla Addons Page - spread the word so more people start using it!