doushengyou2617 2013-09-30 02:32
浏览 45
已采纳

PHP梨邮件无法正常工作

I have been able to use the PEAR package code on a godaddy server that has PEAR installed and everything works as intended, however when I try to execute the code on my local machine I receive no emails and no error messages that gives me any indication of what is going wrong.

From what I have gathered from numerous sources on the web is that once I have installed PEAR I need to setup the include_path in the "php.ini"

Also in the php.ini file I have added

[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = localhost
; http://php.net/smtp-port
smtp_port = 25

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = myemail@gmail.com ****[Hidding real email address]****

PHP installation as followed:

  • php installation path c:\php
  • pear installation path c:\php\pear
  • php.ini include_path = ".;c:\php\pear"
  • Pear packages c:\php\pear - gathered from pear list
    • mail
    • mail_Mime
    • Net_SMTP
    • Net_Socket
    • PEAR

Any help on this matter will be greatly appreciated.

  • 写回答

1条回答 默认 最新

  • dongxie9169 2013-10-20 23:12
    关注

    I needed to install an SMTP mail server on my machine. You can install one on a windows machine by following the answer in this question. Need a lightweight, free, windows SMTP server

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 机器学习能否像多层线性模型一样处理嵌套数据
  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效