Smtp errors since update to 4.9.9 from 4.9.7

Hi,
i upgraded to 4.9.9 CE from 4.9.7 and it seems PHPMailer was upgraded.
Now i get SMTP errors when sending emails:

Warning: stream_socket_enable_crypto(): Peer certificate CN=`yyyyyyyyy.com' did not match expected CN=`xxxx.de' in /var/www/core/phpmailer/class.smtp.php on line 344

on SO i see i can disable the verify-peer function in the options:

How can i fix the upgrade and where should the options for the mailer be set?

Hi,
not sure if it is the “correct” place.
for me it was the right one. /core/phpmailer/class.phpmailer.php Line 276

 * Options array passed to stream_context_create when connecting via SMTP.
 * @var array
 */
public $SMTPOptions = array(
'ssl' => array(

<------>‘verify_peer’ => false,
<------>‘verify_peer_name’ => false,
<------>‘allow_self_signed’ => true,
<------>)
<------>);

hth Michael