Fix email receive script.