Fixed mail script.