class for sendmail