Hi Jaime!
1) Write a script into an event PmAlarmEvent.onStateChange. Whenever a state of an alarm is changed, an event PmAlarmEvent.onStateChange is invoked. You need to test parametr pEvent.Action for a 0 value (alarm activation). In parameter pEvent.Item you will have reference to an activated alarm so that you can read all the needed information from it. That's the way how to invoke script whenever any alarm is activated.
2) The script for sending an email is in promotic documentation see
http://www.promotic.eu/en/pmdoc/EditorA ... ail_01.htmOf course you can make a global method from that script, so that you can send an email from any script in promotic by invoking the global method (something like Pm.Methods.SendMyEmail)