配置php.ini后,无法通过localhost发送电子邮件

时间:2014-07-08 15:31:06

标签: php email xampp localhost

好的,这就是这笔交易。我按照所有说明(在stackoverflow中找到,谢谢)来重新配置php.ini设置,以使用gmail&#; s smtp通过localhost发送电子邮件。我在工作场所使用有线连接。

一切都很好,直到我在家里使用自己的wifi连接。一个简单的mail()函数花了30多秒才完成代码的执行。我必须将php.ini的执行时间限制更改为300.只有在我这样做之后,代码才能完成执行而不会遇到致命错误。然而,没有收到任何电子邮件。它在我的工作场所工作得非常好。实际上,它也更快地执行代码。

任何想法导致了什么?

1 个答案:

答案 0 :(得分:0)

您需要什么:

WAMP Server
Fake Sendmail for Windows
An email account with any email providers,
Stunnel (if Fake Sendmail itselft doesn't work)

- 详情请见:http://yogeshchaugule.com/blog/2013/configure-sendmail-wamp

alternate and also easy solution-(hardly will take 5 minute )
go to any free hosting site ..sign up there and host your page there.. i prefer 2freehosting.com
and then simply use php mail() function to send email
相关问题