added patch to allow use of sendmail instead of connecting to SMTP port