Thursday, January 02, 2020

Re: sending mail from wordpress

On 2020-01-02, Edgar Pettijohn <edgar@pettijohn-web.com> wrote:
> I'm having trouble getting mail to go through wordpress.

Confogure it to send by SMTP instead. (I don't use wordpress and can't
help tell you exactly how, but it's definitely possible - search for
e.g. "wordpress smtp authentication").

> The mail() function is not disabled. If my reading of
> class-phpmailer.php is correct it should see that sendmail_path is
> defined and use sendmail instead of mail().

Using mail() needs a /bin/sh binary inside the chroot jail. You are
better off avoiding mail() where possible.

No comments:

Post a Comment