How to configure SMTP settings in WordPress without a plugin

Posted on: April 12th, 2023
By: Tadeo Martinez

  1. Connect to your website’s server using FTP.
  2. Locate the “wp-config.php” file in your WordPress installation’s root directory and download a copy of the file to your computer.
  3. Open the “wp-config.php” file in a text editor.
  4. Add the following code to the file:
define( 'SMTP_HOST', 'your.smtp.server.com' );
define( 'SMTP_AUTH', true );
define( 'SMTP_PORT', '587' );
define( 'SMTP_SECURE', 'tls' );
define( 'SMTP_USERNAME', 'your@email.com' );
define( 'SMTP_PASSWORD', 'your-email-password' );

Have any questions or comments? Write them below!


Leave a Reply

Your email address will not be published. Required fields are marked *