PHP mail does not get sent, how do I debug?

后端 未结 2 2072
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-07 05:09

I have been trying to send email for registration, invitations and so on.

On local development, emails get sent. However once on the server no mails arrive.

I

2条回答
  •  我在风中等你
    2021-02-07 05:51

    According to your comment above, it looks like your sendmail path is either wrong or commented out in your php.ini. It should be something like this:

    sendmail_path = /usr/sbin/sendmail -t -i
    

    If you're unsure where your sendmail binary resides, you may find it by using:

    whereis sendmail
    

提交回复
热议问题