mailer is out of while loop
pr email script