Question : sendmail : how to stop sending of mails ?

hello
I have done a script in PHP that sends thousands of emails (sendmail linux server)
It seems it slows down the server: I would like to stop the sending of emails:
1) how to do stop it and empty the queue ? (empty the queue and restart sendmail) ?
2) emails are sent alphabitaically: I would like to know what was the last email he sent

regards

Answer : sendmail : how to stop sending of mails ?

Dear Sir,

in order to stop sendmail:

/etc/init.d/sendmail stop

Check if you have mail queued up:

# mailq

Try to flush mail queue:

# sendmail -q

Random Solutions  
 
programming4us programming4us