📜  phpmailer 有效证书 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:44.788000             🧑  作者: Mango

代码示例1
//Turn off cert checking for self signed 
//Probably needed when you fail to auth
$phpMailer->SMTPOptions = [
  'ssl' => [
    'verify_peer' => false,
    'verify_peer_name' => false,
    'allow_self_signed' => true
  ]
];