Skip to content

Instantly share code, notes, and snippets.

@rnagle
Created March 12, 2015 15:16
Show Gist options
  • Save rnagle/597e4936729b935bdbdc to your computer and use it in GitHub Desktop.
Save rnagle/597e4936729b935bdbdc to your computer and use it in GitHub Desktop.
WordPress: set up phpmailer for debugging
<?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