Restore template which was not dead code after all

This partially reverts b32ec6cbe8381858f7499e200cf5e443cf2dbd72
Enable send_email plugin tests