1

I have a seemingly simple problem.

I was looking for an error in a php function that wouldn't return the result. So, quite stupidly, I put mail() functions in different areas of the function to see where it hangs up.

I narrowed it down to a while loop, and (quite stupidly again) decided to put the mail() function directly in the loop. Sure enough...that was the problem. The loop is infinite. I am now getting thousands upon thousands of emails and I can't get it to stop.

I am running a wordpress site hosted on a Mac. It is running the apache web server that comes with Mountain Lion Server.app.

I tried stoping the web service...emails kept pouring in. I logged out of the user...still more emails. It only stopped when I turned off the server, only to start again when I restart.

I have tried this but there are no php processes running: Stopping an infinite loop on a remote server PHP

Where do I go from here?

Community
  • 1
  • 1
theflionking
  • 72
  • 1
  • 8

1 Answers1

1

Kill the mail server queue. You will keep getting emails until all of them have been sent.

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358