Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/andriilive/wp-phpmailer-smtp/archive/refs/heads/main.zipOn Packagist as andriilive/wp-phpmailer-smtp:
composer require andriilive/wp-phpmailer-smtpNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
WordPress PHPMailer SMTP Configuration Plugin
Configure WP PHPMailer to send mail via SMTP, by defining the SMTP configuration in the wp-config.php file.
- Requires PHP at least 8.0
- Tested with WP 5.8.1-6.4.1.
- Supports Bedrock WordPress installs
Bedrock installation
1. Edit the .env file
2. Require the package via composer
Manual installation
1. Edit the wp-config.php file
2. Put the wp-phpmailer-smtp.php file in to mu-plugins or plugins dir
wp-config.php
Add SMTP configuration to wp-config.php file
Download wp-phpmailer-smtp.php
Launch the following command in the mu-plugins or plugins directory