changed plain back to text for mailtype