Hello,
As far as I can tell I have followed the docs to the letter, but I am consistently getting 5.7.8 Error: authentication failed: which is not true because I have checked, double-checked and triple checked both username and password values and they are 110% correct.
Looking at my mailserver logs, zend-mail does not appear to be sending a username pam_unix(dovecot:auth): check pass; user unknown.
But, as I said, I'm doing everything by the letter of the docs, all the required parameters are passed:
if (!$this->options = new SmtpOptions ([
'name' => "foo",
'host' => "foo",
'port' => 25,
'connection_class' => "plain",
'connection_config' => [
'username' => "foobar",
'password' => "secretsquirrel",
'ssl' => "tls",
'use_complete_quit' => "false"
],
])) { return false; }
I am therefore pretty sure that there is a bug of some sort in zend-mail preventing authentication from succeeding.
However, the apparent lack of debug functionality in zend-mail means I am left with little option but to dump zend-mail and use another PHP library instead.