SHARE
TWEET

WordPress SMTP Without Plugin

semdev Nov 1st, 2019 296 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top