trying to send mail using swift mailer, gmail smtp, php

后端 未结 8 1293
攒了一身酷
攒了一身酷 2020-12-01 01:08

Here is my code:

setUs         


        
8条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 01:19

    I'm using the "Messages Swift Mailer" bundle in Laravel 3 and having the same issue. After some testing, in my case, the solution was to set the same email address that I used in the SMTP authentication on the "from" parameter.

    I was trying to use a different address and that was triggering the "swiftmailer expected response code 220 but got code with message" error.

    Hope that helps.

提交回复
热议问题