PHP Mail stops working without me editing the code

前端 未结 3 765
傲寒
傲寒 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条回答
  • 2021-01-22 00:13

    Problem solved. Changed to a new server host. No issues any more!

    0 讨论(0)
  • 2021-01-22 00:17

    could not find if anything wrong in your code. check if APC cache is enabled in your server. sometimes it creates problem in taking updated code.

    if you are using SMTP server then mail() function may not work. you can use PEARS for this.

    0 讨论(0)
  • 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 :)

    0 讨论(0)
提交回复
热议问题