使用核心 php mail() 通过 gmail SMTP 发送 [英] using core php mail() to send via gmail SMTP

查看:24
本文介绍了使用核心 php mail() 通过 gmail SMTP 发送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不使用任何外部类的情况下通过 gmail smtp 在核心 php 中发送邮件?

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

推荐答案

我认为这不可能,因为您需要执行身份验证.另外,你需要通过 SSL 套接字连接,我不知道股票 mail() 函数是否支持这个.

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.

如果您愿意使用 Pear Mail 包,您可能想要看看这个:

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

从 PHP 页面使用 GMail SMTP 服务器发送电子邮件

这篇关于使用核心 php mail() 通过 gmail SMTP 发送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆