XF 2.0 Swift_TransportException:

ehd

Well-known member
  • Swift_TransportException: Email to xxx failed: Unsupported sendmail command flags [/var/qmail/bin/qmail-inject]. Must be one of "-bs" or "-t" but can include additional flags.
  • src/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/SendmailTransport.php:146


Any idea what that means?
 
Can you confirm what you have for the sendmail_path value in PHP? You can confirm this via PHP info at admin.php?tools/phpinfo.
 
Swift mailer expects a particular parameter that defines how mail is handed off to sendmail (or compatible wrapper).

The problem with Qmail is that while it works pretty similarly, it's not exactly compatible with the full command line API of sendmail (notably, flags like -t or -bs). You may be able to set PHP's sendmail_path to /var/qmail/bin/sendmail -t and have it function.
 
Top Bottom