In the attachement SOFTPLC_ALARM_PRIKLAD.zip you will find a project with an example of an alarm script, unlike previous versions, an alarm is issued here even if the alarm value is "memory", ie for alarms with a duration shorter than the update time in Vision.
MAIL_TEST_net4.zip is an example with an alarm script that sends e-mail - in .NET4 (Win7). When migrating older projects to Windows 7, you may need to modify the e-mail scripts, an example of how this works under Windows 7 in the attachment.