Forums

wordpress + php5 + qmail (1 post)

  1. Zhingeo
    Member
    Posted 4 years ago #

    I was having problems with a recent installation. wp_mail wasn't getting any mails through. I had recently recompiled php to include mail() support. After investigating, I finally found errors when wp_mail was using MailSend (correctly) but trying to throw in a sendmail parameter to qmail-inject that it didn't understand (-o). I replaced line 433 of class-phpmailer.php:

    $params = sprintf("-oi -f %s", $this->Sender);

    with:

    $params = sprintf("-f %s", $this->Sender);

    and everything is working now. I'm not sure what the right way to solve this or detect this or what have you for installations with my particular set of circumstances, but... there you have it. Hope this helps someone else out that is having the same problem.

    - ZG

Topic Closed

This topic has been closed to new replies.

About this Topic