MadnessRed Posted October 30, 2008 Share Posted October 30, 2008 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 Quote Link to comment Share on other sites More sharing options...
trq Posted October 30, 2008 Share Posted October 30, 2008 Do you have access to the mail server? Quote Link to comment Share on other sites More sharing options...
Maq Posted October 30, 2008 Share Posted October 30, 2008 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. Quote Link to comment Share on other sites More sharing options...
MadnessRed Posted October 31, 2008 Author Share Posted October 31, 2008 I don't know how to use SSH, Quote Link to comment Share on other sites More sharing options...
Maq Posted October 31, 2008 Share Posted October 31, 2008 Do you have it? Does your host allow you to connect with it? It's the same credentials as FTP, I think it may be a different port #, SSH's default port is 22. Quote Link to comment Share on other sites More sharing options...
MadnessRed Posted October 31, 2008 Author Share Posted October 31, 2008 I think I have SSH, Quote Link to comment Share on other sites More sharing options...
Maq Posted October 31, 2008 Share Posted October 31, 2008 If not, there's open ssh which is free. Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted October 31, 2008 Share Posted October 31, 2008 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) Quote Link to comment Share on other sites More sharing options...
MadnessRed Posted October 31, 2008 Author Share Posted October 31, 2008 Shell access is not enabled on your account! If you need shell access please contact support. Quote Link to comment Share on other sites More sharing options...
corbin Posted November 1, 2008 Share Posted November 1, 2008 You'll need to ask them to kill the script and empty the mail queue. Quote Link to comment Share on other sites More sharing options...
MadnessRed Posted November 1, 2008 Author Share Posted November 1, 2008 ok, thanks for the help, Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.