andriilive/wp-phpmailer-smtp
Composer 安装命令:
composer require andriilive/wp-phpmailer-smtp
包简介
Configure wordpress PHPMailer to send mail via SMTP.
关键字:
README 文档
README
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
WordPressinstalls
Bedrock installation
- Edit the
.envfile - Require the package via composer
# Required SMTP configuration SMTP_HOST=smtp.xxx.com SMTP_PORT=465 SMTP_USERNAME=bot@digitalandy.eu SMTP_PASSWORD=xxxxxxxx # Optional SMTP_FROM=bot@digitalandy.eu SMTP_FROM_NAME=Bot DISABLE_WP_PHPMAILER_SMTP=true SMTP_REPLY_TO=hi@digitalandy.eu
composer require andriilive/wp-phpmailer-smtp
Manual installation
- Edit the
wp-config.phpfile - Put the
wp-phpmailer-smtp.phpfile in tomu-pluginsorpluginsdir
wp-config.php
Add SMTP configuration to wp-config.php file
/* Required SMTP configuration */ define('SMTP_HOST', 'smtp.xxx.com'); define('SMTP_PORT', 465); define('SMTP_USERNAME', 'bot@digitalandy.eu'); define('SMTP_PASSWORD', 'xxxxxxxx'); /* Optional */ define('SMTP_FROM', 'bot@digitalandy.eu'); // From email define('SMTP_FROM_NAME', 'Bot'); // From name define('DISABLE_WP_PHPMAILER_SMTP', true); // Disable WP PHPMailer SMTP define('SMTP_REPLY_TO', ''); // Adds reply-to header
Download wp-phpmailer-smtp.php
Launch the following command in the mu-plugins or plugins directory
wget https://raw.githubusercontent.com/digitalandy/wp-phpmailer-smtp/main/wp-phpmailer-smtp.php -O wp-phpmailer-smtp.php
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2024-09-02