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

后端 未结 4 640
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条回答
  •  南笙
    南笙 (楼主)
    2020-12-06 07:09

    Best would be to use a library like Swift Mailer that throws exceptions that can be easily handled.

提交回复
热议问题