使用核心PHP邮件()通过Gmail发送SMTP [英] using core php mail() to send via gmail SMTP
本文介绍了使用核心PHP邮件()通过Gmail发送SMTP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有可能通过gmail smtp在核心php中发送邮件而不使用任何外部类?
解决方案
认为这是可能的,因为你需要进行认证。此外,您需要通过SSL套接字连接,我不知道股票 mail()
函数是否支持此功能。
如果您愿意使用 Pear Mail 包裹,您可能需要看看这个:
Is it possible to send mail in core php via gmail smtp without using any external class?
解决方案
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
这篇关于使用核心PHP邮件()通过Gmail发送SMTP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文