Create script

Apply in cron and wait until the process crosses your threshold. Might require a postfix/sendmail relay if your using another SMTP server.