If sendmail is unavailable use SMTP.