PHP Mail stops working without me editing the code

前端 未结 3 802
傲寒
傲寒 2021-01-21 23:56

I have a problem with my PHP Mail. It stops working from time to time without me even touching the code. I have a script which checks if required forms are empty. This script wo

3条回答
  •  萌比男神i
    2021-01-22 00:27

    I have experienced a similar problem. Turned out the browser, by error, sometimes double-posts your form; One time with content and another time without content.

    If no content is submitted to your script, obviously there's nothing to act upon. There are a number of ways to check on this, but they way I discovered it was a desperate last resort measure where I sent emails to myself with each run of the script. And I showed that I often got two mails where the script had run only once.

    It's worht trying :)

提交回复
热议问题