CakePHP framework MailTransport and email configuration.
Fix PHP 8 mail() TypeError in CakePHP 4.x when additional_params is null. Server fixes, SMTP option, or app-level transport - no vendor edits needed now.