created sendmail base class