【问题标题】:Unable to send email through localhost after configuring php.ini配置 php.ini 后无法通过 localhost 发送电子邮件
【发布时间】:2014-08-29 10:17:27
【问题描述】:

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

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

任何想法是什么导致了这个?

【问题讨论】:

    标签: php email xampp localhost


    【解决方案1】:

    你需要什么:

    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
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-07-30
      • 2014-06-20
      • 2013-02-21
      • 2016-03-10
      • 2012-07-03
      • 2012-01-26
      • 2014-05-28
      • 1970-01-01
      相关资源
      最近更新 更多