邮件捕手不工作PHP

时间:2015-07-24 15:54:21

标签: php email mailcatcher

很长一段时间后,我仍然无法通过mailcatcher收到邮件。邮件被发送,但它不是cought。我正在使用xampp,这是我在php.ini中的设置:

SMTP = localhost
smtp_port = 1025
sendmail_path = /usr/bin/env catchmail -f some@from.address

和PHP

$message = "Line 1\r\nLine 2\r\nLine 3";


$message = wordwrap($message, 70, "\r\n");


$sent = mail('caffeinated@example.com', 'My Subject', $message,'webmaster@example.com');

if($sent) {
    echo "<h1>Sent...</h1>";
}

更新

我在Windows操作系统上测试它

0 个答案:

没有答案