使用带有谷歌SMTP的phpmailer发送表单

时间:2016-08-01 14:47:22

标签: phpmailer

我在freehostia.com上有一个免费的用户帐户,关闭了SMTP。我在我的网站上有一个联系表格,我希望在提交后通过我的电子邮件发送邮件。作为SMTP关闭我希望使用phpmailer通过谷歌SMTP服务来实现这一点。这可能吗?

1 个答案:

答案 0 :(得分:0)

不清楚你的意思是" SMTP off"。你的意思是他们阻止出站SMTP?或者没有本地邮件服务器,因此您无法使用PHP的mail()功能?

假设后者,请查看the examples that are provided with PHPMailer