mail script is working