Created
March 12, 2015 15:16
-
-
Save rnagle/597e4936729b935bdbdc to your computer and use it in GitHub Desktop.
WordPress: set up phpmailer for debugging
This file contains hidden or 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 | |
function phpmailer_debug_settings($phpmailer) { | |
$phpmailer->isSMTP(); | |
$phpmailer->Host = 'localhost'; | |
$phpmailer->Port = 1025; | |
} | |
add_action('phpmailer_init', 'phpmailer_debug_settings'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment