use sendmail if smtp is not enabled

closes #263