integrate email template work