Manual:Hooks/UserCanSendEmail

Details

 * $user: User (object) whose permission is being checked
 * &$canSend: bool set on input, can override on output

By default, users can send email if email sending is enabled, they have the  right, and they pass an email confirmed check.