Created
December 5, 2018 17:31
-
-
Save edurodriguesdias/7ee3fcda928abb40ccbdf82c7c767911 to your computer and use it in GitHub Desktop.
Configurar SMTP Wordpress - wp_mail()
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
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