Fix emails with text, html and attachments