简体   繁体   中英

Accidentally looped mail() in PHP! Been getting emails since last night. How do I stop it?

Yup, I did the stupidest of stupid acts. I looped mail() accidentally and now, since 8:30 last night, I have gotten nearly 2000 emails from my server.

He claims to have rebooted it, but I still get the emails.. I can tell they were sent a while ago because the email's content is about 24 hours outdated.

How do I stop this!

您需要像这样从队列中删除所有电子邮件:

ls /var/spool/mqueue | xargs rm

Delete the php file from you server and wait. The e-mails maybe delayed because of the amount.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM