【问题标题】:Configure xampp server to send email?配置 xampp 服务器发送电子邮件?
【发布时间】:2013-11-21 10:13:15
【问题描述】:

有没有一种方法可以为 PHP 配置 xampp 服务器以启用 mail() 功能。如果没有,我可以安装一个本地邮件服务器来测试 PHP 的 mail() 功能吗?

【问题讨论】:

标签: php email xampp


【解决方案1】:

在 php.ini 上

; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder)
;sendmail_path = "\"G:\xampp\sendmail\sendmail.exe\" -t"

; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the G:\xampp\mailoutput folder
sendmail_path="G:\xampp\mailtodisk\mailtodisk.exe"

只需取消注释第一个 sendmail_path 并注释 mailToDisk 选项。

【讨论】:

    猜你喜欢
    • 2015-08-11
    • 2011-08-12
    • 2015-05-24
    • 2012-08-29
    • 2019-12-01
    • 2013-12-18
    • 1970-01-01
    • 1970-01-01
    • 2014-08-12
    相关资源
    最近更新 更多