Revert "added mail encoder"

This reverts commit beb93e6724cc437fa1723b18c945a57805448a21.