tcPrettyEmail updates – branch support and tc9.1.6 fix

Posted on

This last month has seen a couple of updates to the tcPrettyEmail plugin.

One was a bugfix release to support a breaking change in TeamCity 9.1.6 and the other was adding support for feature branch names.

If you’re running your builds from GIT or Mercurial and have your VCS configured for Feature Branches, then tcPrettyEmail will now print the branch name in the subject and in the overview at the beginning of the email.

Downloads are on GitHub and as usual, please let me know if you experience any problems with either of these releases.


tcPrettyEmail TeamCity plugin now supports STARTTLS

Posted on Updated on

A recent commenter on the blog mentioned that using a gmail address as the sender address from the tcPrettyEmail plugin was not working due to the fact that wants to use TLS.

I had a quick look through the javax.mail API docs and a browse over stackoverflow, and found that enabling STARTTLS support would be relatively simple. I’m using the spring mail wrapper because it’s bundled with TeamCity, and found that you can pass in extra options using a standard JavaProperties object.

So a few extra lines of code to support the extra tag in TeamCity’s main-config.xml file was all that was really needed to enable it.

While I was pushing a new version, I fixed a couple of missing image files that were causing messages to fail for some less common email message types.

The new version is uploaded to the sourceforge download page and the docs updated to include the new field.

The enable starttls, simply add an argument to the smtp tag (nested inside pretty-email) in main-config.xml. You will probably need to add your username and password to the file as well. Here is an example using gmail as the sender:

    <smtp host="" port="587" 
          from-name="Friendly Name" 
          starttls-enabled="true" />

For futher detail, please see the documentation.

tcPrettyEmail update for TeamCity 6.5.x

Posted on Updated on

A recent comment from Julien pointed out that tcPrettyEmail messages with Test results are not printing corerctly.

It turns out that the TestBean in the TeamCity API was removed, and I was using that to glean the test detail.¬† In version, I’ve worked around that by building my own bean and passing that to the template engine.

WARNING: This release is only compatible with TeamCity 6.5 and later. For Teamcity 6.0 and earlier, please use the earlier versions.


If you find a bug or have feature request, please post a comment below or on the tcPrettyEmail bugs page.

Updated release of tcPrettyEmailer plugin for TeamCity

Posted on

I am pleased to announce the updated release of tcPrettyEmailer, the beautiful email notifier for TeamCity.
This version fixes a few bugs and has a much friendlier packaging/deployment process.

The documentation has been added to the tcplugins wiki on sourceforge, and you can download the zipfile from source forge too.