using core php mail() to send via gmail SMTP

前端 未结 5 939
说谎
说谎 2020-12-09 09:54

Is it possible to send mail in core php via gmail smtp without using any external class?

5条回答
  •  死守一世寂寞
    2020-12-09 10:38

    I don't think it is possible because you need to perform an authentification. Also, you need to connect via an SSL socket, I don't know if the stock mail() function support this.

    If you are willing to use the Pear Mail package, you might want to take a look at this:

    Send email using the GMail SMTP server from a PHP page

提交回复
热议问题