add sendmail func. which works at mmsdk