PHPmailer reports: Could not execute: /usr/sbin/sendmail

A-OK picture A-OK · Dec 9, 2010 · Viewed 47.1k times · Source

Why? I can send via mail() in PHP but I can't send via PHPMailer using IsSendmail()

Answer

nitrnitr picture nitrnitr · Nov 8, 2012

I've had the same error. Solved it by commenting/deleting this:

$mail->IsSendmail();

Now it works correctly. I can send mails, and I receive them in my inbox.