add charset for mailexceptions
add sendmail method for mailexceptions