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

前端 未结 13 959
不思量自难忘°
不思量自难忘° 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:24

    I really have the same problem, finally, i solved it.

    its likey not the Swift Mail's problem. It's Yaml parser's problem. if your password only the digits, the password senmd to swift finally not the same one.

    swiftmailer:
        transport:  smtp
        encryption: ssl
        auth_mode:  login
        host:       smtp.gmail.com
        username:   your_username
        password:   61548921
    

    you need fix it with double quotes password: "61548921"

提交回复
热议问题