fixed mail script