Cannot use sendmail without setting smtp host and port
Bug report
Because of this and following line, mail sending fail when no host and port are set for SMTP, even if transport is set as sendmail
. This test should be moved within the transport == smtp
case as it does not make sense to set SMTP settings when using sendmail.