Get Wordpress to use sendmail instead of mail()
Same project I just mentioned below - something funky was going on with Wordpress not sending emails. I had a server admin looking at the server and I'd submit a comment on the corporate blog and no emails would get sent. I even tried using a plugin that forced wordpress to use SMTP, still would not send emails from the blog.
I found on the support forums where someone mentioned a hack to get Wordpress to use sendmail. In wp-includes folder open the file pluggable.php. Around line 362 is the following:
// Set to use PHP's mail()
$phpmailer->IsMail();
Change that to:
// Set to use PHP's mail()
//$phpmailer->IsMail();
$phpmailer->IsSendmail();
As soon as I did that - voila - it started sending emails.
(yes, I know, I'm modifying core code again. Tell me how to make this a plugin and I will!)
June 4th, 2008 at 7:56 pm
honestly, i really think people should get away from the bloatware that is wordpress. this is just one more example…
why can't they put that in the wp-config.php file?