Mail script functioning now