some fixes in send_mail.module