use sendmail if smtp is not enabled

closes #263
Merge pull request #274 from reviewninja/feature/sendmail

use sendmail if smtp is not enabled