简体   繁体   English

使用 phpmailer 和 google SMTP 发送表单

[英]sending a form using phpmailer with google SMTP

I have a free user account on freehostia.com with SMTP off.我在 freehostia.com 上有一个关闭 SMTP 的免费用户帐户。 I have a contact form in my site which I wish to mail on my email after submit.我的网站上有一个联系表格,我希望在提交后通过电子邮件邮寄。 as SMTP off I wish to use phpmailer to acomplish this with google SMTP service.由于 SMTP 关闭,我希望使用 phpmailer 来通过 google SMTP 服务完成此操作。 Is this possible?这可能吗?

It's not clear what you mean by "SMTP off".不清楚“SMTP 关闭”是什么意思。 Do you mean they block outbound SMTP?你的意思是他们阻止出站 SMTP? or that there is no local mail server so you can't use PHP's mail() function?或者没有本地邮件服务器所以你不能使用 PHP 的mail()函数?

Assuming the latter, look at the examples that are provided with PHPMailer .假设是后者,请查看PHPMailer 提供的示例

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM