use sendmail to send alarm emails