encode for sending emails have been changed