How do I stop a script from executing? (I accidently have an infinite loop sending emails)

Hi. I need to stop a script from executing that I ran in my development server. There’s a loop that will send emails infinitely. I’ve closed the application and the browser window but it’s still running. I would greatly appreciate some help!

Depends on your development platform, but in general, restart your Apache webserver.

2 Likes

Thanks for the suggestion. I ended up changing the settings for the SMTP Server and then re-deploying an application so that the settings would be changed on the production server as well. That stopped the emails from coming in. I then re-deployed the correct settings since that will make it so that mail will be correctly sent.