WP SMTP is a simple Composer package for handling WordPress SMTP with .env
. No admin menus or other bloat. Just a simple admin notice to verify your connection when needed and the ability to do a simple task WordPress should probably be handling natively.
Install via Composer:
composer require log1x/wp-smtp
All configuration goes into .env
.
WP_SMTP_HOST=mail.example.com # Host
WP_SMTP_USERNAME=example # Username
WP_SMTP_PASSWORD=secure123 # Password
WP_SMTP_PORT=587 # Port
WP_SMTP_PROTOCOL=tls # Protocol
WP_SMTP_TIMEOUT=10 # Timeout
WP_SMTP_FORCEFROM=example@example.com # Force From Email
WP_SMTP_FORCEFROMNAME=Example # Force From Name
WP_SMTP_HOST=localhost
WP_SMTP_PORT=1025
WP_SMTP_PROTOCOL=false
SMTP connect() failed.
This error means the initial connection to your host/port failed.
Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated. When contributing code, please follow the existing code style.
If you're feeling generous, I also take contributions in the form of coffee & energy drinks.
WP SMTP is provided under the MIT License.