Skip to content

Instantly share code, notes, and snippets.

@edurodriguesdias
Created December 5, 2018 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edurodriguesdias/7ee3fcda928abb40ccbdf82c7c767911 to your computer and use it in GitHub Desktop.
Save edurodriguesdias/7ee3fcda928abb40ccbdf82c7c767911 to your computer and use it in GitHub Desktop.
Configurar SMTP Wordpress - wp_mail()
define( 'SMTP_USER', 'your-mail' ); // Username to use for SMTP authentication
define( 'SMTP_PASS', 'your-password' ); // Password to use for SMTP authentication
define( 'SMTP_HOST', 'smtp.gmail.com'); // The hostname of the mail server (it's for gmail servers)
define( 'SMTP_FROM', 'email-from' ); // SMTP From email address
define( 'SMTP_NAME', 'your-name' ); // SMTP From name
define( 'SMTP_PORT', '587' ); // SMTP port number - likely to be 25, 465 or 587
define( 'SMTP_SECURE', 'tls' ); // Encryption system to use - ssl or tls
define( 'SMTP_AUTH', true ); // Use SMTP authentication (true|false)
define( 'SMTP_DEBUG', 1 ); // for debugging purposes only set to 1 or 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment