Mail returns false

前端 未结 7 1311
太阳男子
太阳男子 2020-11-30 13:43

I\'m currently using a custom made library at my job. Until just rencently the library was working perfectly. It apparently return false since about today.

The libra

7条回答
  •  孤城傲影
    2020-11-30 14:19

    I had similar problem , mail function always returns false even if the email is received successfully.

    I found in php configuration file php.ini, I had set up

    ; For Win32 only.
    ;sendmail_from = me@example.com
    
    ; For Unix only.
    sendmail_path = "/usr/sbin/sendmail -t -i -f "care@mydomain.com"
    

    I have changed it to below

    ; For Win32 only.
    ;sendmail_from = me@example.com
    
    ; For Unix only.
    sendmail_path = /usr/sbin/sendmail -t -i -f care@mydomain.com
    

    As per this sendmail_from is for win32 , so in *unix OS we need to set the value as shown in sendmail_path variable.

    Regards Minesh

提交回复
热议问题