PHP Swift mailer: Failed to authenticate on SMTP using 2 possible authenticators

前端 未结 13 936
不思量自难忘°
不思量自难忘° 2020-12-14 07:41

When I send an email with the PHP Swift mailer to this server: smtp.exchange.example.com like this:

// Load transport
$this->transport =
    Swift_SmtpTra         


        
13条回答
  •  攒了一身酷
    2020-12-14 08:23

    You perhaps use the wrong username.

    I had a similar error. Ensure you're not using uppercase while logging into server.

    Example: JacekPL@lala.pl

    If you use ->setUsername('JacekPL'), this can cause an error. Use ->setUsername('jacekpl') instead. This solved my problem.

提交回复
热议问题