Generic EEM script to send emails

event manager environment _email_to router-notifications@mydomain.com
event manager environment _email_server 192.168.1.1 (This is your SMTP Server)
event manager environment _email_from 2951@Office1
event manager environment _router_name 2951@Office1
event manager directory user policy "flash:/" 

courtesy of Chris Partsenidis