php mailes code example
Example 1: require php mailer
composer require phpmailer/phpmailer
Example 2: PHPMailer
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);