[Change] fixed direct call to mail instead of using $mail