Add base64encode behavior to email model