Catching PHP mail() errors and showing reasonable user error message

后端 未结 4 641
Happy的楠姐
Happy的楠姐 2020-12-06 06:57

I\'m writing a fairly simple register php script that uses PHP\'s built in mail() function to email the user an activation link.

The problem is that I c

4条回答
  •  旧时难觅i
    2020-12-06 07:33

    A trivial error which I suffered from, was simply a lack of 'sendmail' in my system. Eventually, I have installed exim4 and configured it - and then php's mail(...) worked fine.

    See also:

    • http://www.w3schools.com/php/php_ref_mail.asp (Requirements)
    • http://wiki.debian.org/GmailAndExim4

提交回复
热议问题