This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// The code below will allow you to use SMTP in WordPress with no plugin needed. | |
//------------- | |
// Place this code in functions.php inside your theme, in a Custom Plugin (plugins) or a Must Use Plugin (mu-plugins). | |
// Configures SMTP authentication | |
add_action( 'phpmailer_init', 'send_smtp_email' ); | |
function send_smtp_email( $phpmailer ) { |