Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MailPoet-Staff/64364f9465eb8abe5ffa478fdea1cd85 to your computer and use it in GitHub Desktop.
Save MailPoet-Staff/64364f9465eb8abe5ffa478fdea1cd85 to your computer and use it in GitHub Desktop.
<?php
add_filter('mailpoet_mailer_smtp_options', 'mailpoet_secure_connection_options');
function mailpoet_secure_connection_options() {
return [
'ssl' => [
// description of available options can be found here: http://php.net/manual/en/context.ssl.php
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true,
],
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment