added function 'send mail'