php发送电子邮件通过gmail(php.ini)与php内部邮件功能(win7) [英] php send email via gmail (php.ini) with php internal mail function (win7)

查看:119
本文介绍了php发送电子邮件通过gmail(php.ini)与php内部邮件功能(win7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有通过gmail(或其他免费提供商)在php发送电子邮件。

但是我想使用内置mail()函数的PHP。

Is there anyway to send email via gmail (or other free provider) in php.
But I want to use php built in mail() function.

此解决方案仅适用于开发和分期。

This solution is only for dev and staging.

谢谢

推荐答案

您可以使用 PHPMailer 。并查看此处了解您应该在脚本中提供的详细信息以便您能够使用Gmail SMTP发送。

You can, using PHPMailer. And also check here to know details you should provide in your script so that you be able to send using Gmail SMTP.

来源

丰富的/如果你刚刚使用谷歌,那么预先制作的脚本/类。除非你想从头开始。

Plenty of walk-throughs and pre-made scripts/classes if you just used google. Unless you want to make yours from scratch.

这篇关于php发送电子邮件通过gmail(php.ini)与php内部邮件功能(win7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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