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

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

Here is my code:

setUs         


        
8条回答
  •  感情败类
    2020-12-01 01:24

    there is missing the ssl parameter, it should be something like that

    Swift_SmtpTransport::newInstance('smtp.gmail.com', 465, "ssl")
    

    Tested and work fine

提交回复
热议问题