sendmail done

ready for testing