queue saturate notification by e-mail

good day
I’m trying to create a script that when a queue is saturating, I am informed by e-mail, someone
how to collect the information that the queue simple is being saturated?

There is not a method for auto send email exactly when the queue is full, without overcharge cpu.
You can schedule this script, do not run the script too often, see your cpu to set best timing for you.
Simply replace “:log info” with your “send email” procedure.

Good day friend I made the changes you mentioned to send email but not receive the email, you can give me more a little help.