works with email template