regist and sendmail