Improving script - send a notification mail to users