Script for sending emails and SMS's