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

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

报告相同问题?

悬赏问题

  • ¥15 关于#lua#的问题,请各位专家解答!
  • ¥15 什么设备可以研究OFDM的60GHz毫米波信道模型
  • ¥15 不知道是该怎么引用多个函数片段
  • ¥30 关于用python写支付宝扫码付异步通知收不到的问题
  • ¥50 vue组件中无法正确接收并处理axios请求
  • ¥15 隐藏系统界面pdf的打印、下载按钮
  • ¥15 基于pso参数优化的LightGBM分类模型
  • ¥15 安装Paddleocr时报错无法解决
  • ¥15 python中transformers可以正常下载,但是没有办法使用pipeline
  • ¥15 人在外地出差,速帮一点点