Adds support for email-template in payload