script for mail notification