Updated the mailing script