update sendmail class functions