added gustav's new option for using sendmail as of 0.3