How to send an email automatically after a limit violation?