Advertisement
semdev

WordPress SMTP Without Plugin

Nov 1st, 2019
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. // Configures WordPress to use SMTP server
  2.     define( 'SMTP_USER',   'example@yoursite.com.com' );    // Username to use for SMTP authentication
  3.     define( 'SMTP_PASS',   'SMTP_PASSWORD' );       // Password to use for SMTP authentication
  4.     define( 'SMTP_HOST',   'smtp.smtpserver.com' );    // The hostname of the mail server
  5.     define( 'SMTP_FROM',   'example@yoursite.com' ); // SMTP From email address
  6.     define( 'SMTP_NAME',   'FROM_NAME' );    // SMTP From name
  7.     define( 'SMTP_PORT',   '25' );                  // SMTP port number - likely to be 25, 465 or 587
  8.     define( 'SMTP_SECURE', 'tls' );                 // Encryption system to use - ssl or tls
  9.     define( 'SMTP_AUTH',    true );                 // Use SMTP authentication (true|false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement