Jump to content

Recommended Posts

I was writing a script that would send emails out, to a group of people using mysql and a while loop.

 

I think you see where this is going...

 

Well first i though it would be a good idea to test it by sending myself an email, so I said SELECT * FROM users where id = 1.

 

Anyway, the script just does nothing and I get a white screen till eventually I hit x on my browser.

 

Here comes the funny but though, the while loop seems to have been locked open and it has been sending emails non stop for the past few weeks, for example I got 2,225 emails today, all saying test email.

 

My question is, is there anyway to stop this script? I mean it was pretty funny to begin with but it gets annoying after a while, any help would be great.

 

Thanks

 

Anthony

 

Link to comment
https://forums.phpfreaks.com/topic/130782-cant-stop-the-emails/
Share on other sites

If you have SSH access you could take a look at all the processes, 'ps -ef' and find the mail server process.  Get the process id and kill it, 'kill 1234'.

 

Problem is that if any messages are queued I think they will be sent regardless.

Link to comment
https://forums.phpfreaks.com/topic/130782-cant-stop-the-emails/#findComment-678904
Share on other sites

1. download this: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

 

2. Open it, and in the "Host Name (or IP Address)" field type in your web host's name. The rest should be set by default.

 

3. Press "Enter", or Click "Open"

 

4. type in your username (might be your FTP name)

5. type in your password (might be your FTP pass)

Link to comment
https://forums.phpfreaks.com/topic/130782-cant-stop-the-emails/#findComment-679459
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.