Add sendmail support. Fixes #1