Working mail script