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

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

 

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值