BugFree 3.0.2使用发送不了邮件问题

BugFree 3.0.2使用发送不了邮件问题

分类: 测试 问题 255人阅读 评论(0) 收藏 举报

XAMPP中集成了Apache+Mysql,把BugFree下载下来放到xampp\htdocs目录下就OK,细节的安装和部署就不在累述。这里着重记录这个版本邮件发送不了的问题。

一直看Bugfree官网:

http://testing.etao.com/project/bugfree 开始配置了main.php

配置如下:

    array (
      'on' => '1',
      'from_address' => '',//自己邮箱账号
      'from_name' => 'bugfree',
      'send_method' => 'SMTP',
      'send_params' =>
      array (
        'host' => 'smtp.163.com',
        'smtp_auth' => true,
        'username' => '',邮箱账号用户名
        'password' => '',密码
      ),
    ),
  ),

但这样设置仍然发送不了邮件,我反复检查了邮箱的配置参数没有发现异常。并且看日志:bugfree\protected\runtime\application.log

也没有找到异常信息包括看apache日志:

C:\xampp\apache\logs\access.log和

C:\xampp\apache\logs\error.log

这样折腾了几天,我看有XAMPP下有个C:\xampp\sendmail.ini 尝试修改了它,然后就能发送邮件了。

; configuration for fake sendmail

; if this file doesn't exist, sendmail.exe will look for the settings in
; the registry, under HKLM\Software\Sendmail

[sendmail]

; you must change mail.mydomain.com to your smtp server,
; or to IIS's "pickup" directory.  (generally C:\Inetpub\mailroot\Pickup)
; emails delivered via IIS's pickup directory cause sendmail to
; run quicker, but you won't get error messages back to the calling
; application.

smtp_server=smtp.163.com

; smtp port (normally 25)

smtp_port=25

; the default domain for this server will be read from the registry
; this will be appended to email addresses when one isn't provided
; if you want to override the value in the registry, uncomment and modify

;default_domain=163.com

; log smtp errors to error.log (defaults to same directory as sendmail.exe)
; uncomment to enable logging

;error_logfile=error.log

; create debug log as debug.log (defaults to same directory as sendmail.exe)
; uncomment to enable debugging

;debug_logfile=debug.log

; if your smtp server requires authentication, modify the following two lines

;auth_username=*******//邮箱@以前字符串
;auth_password=******

; if your smtp server uses pop3 before smtp authentication, modify the
; following three lines

;pop3_server=pop.163.com
;pop3_username=******

;pop3_password=******

; to force the sender to always be the following email address, uncomment and
; populate with a valid email address.  this will only affect the "MAIL FROM"
; command, it won't modify the "From: " header of the message content

;force_sender=me@localhost

; sendmail will use your hostname and your default_domain in the ehlo/helo
; smtp greeting.  you can manually set the ehlo/helo name if required

;hostname=163.com

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭