Skip to content

Instantly share code, notes, and snippets.

@slaFFik
Created November 3, 2017 14:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save slaFFik/930aa9c21c0e8f5ffb0ff4c9090aa1d4 to your computer and use it in GitHub Desktop.
Save slaFFik/930aa9c21c0e8f5ffb0ff4c9090aa1d4 to your computer and use it in GitHub Desktop.
WP Mail SMTP: Disable SMTPAutoTLS
<?php
add_filter('wp_mail_smtp_custom_options', function( $phpmailer ) {
$phpmailer->SMTPAutoTLS = false;
return $phpmailer;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment