dannyvankooten / wp-smtp-mailer
A WordPress plugin that configures wp_mail to use SMTP.
1.1.2
2024-02-11 18:44 UTC
Requires
- php: >=5.3.0
- composer/installers: ~1.0|~2.0
Requires (Dev)
- phpunit/phpunit: 4.5.*
This package is not auto-updated.
Last update: 2024-11-19 12:59:32 UTC
README
This plugin will configure the default WordPress email function (wp_mail
) to use PHPMailer with SMTP.
Usage
Define all of the following constants in your /wp-config.php
file. If either one of these constants is not defined, the plugin won't configure PHPMailer to use SMTP.
define( 'SMTP_HOST', 'smtp.gmail.com' );
define( 'SMTP_PORT', 465 );
define( 'SMTP_USER', 'your email' );
define( 'SMTP_PASSWORD', 'your password' );
That's all.
PS. I recommend using something like MailCatcher as the SMTP server in your development environments.