Skip to content

Instantly share code, notes, and snippets.

@CTimmerman
Created November 26, 2014 10:14
Show Gist options
  • Save CTimmerman/38663f5ae07702e94159 to your computer and use it in GitHub Desktop.
Save CTimmerman/38663f5ae07702e94159 to your computer and use it in GitHub Desktop.
Testing WordPress email settings
<?php
require_once('wp-load.php'); // Required by all WordPress functions.
wp_mail("email", "subject", "message"); // Sends message to email address.
phpinfo(); // Shows all PHP settings, including SMTP server.
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment