moddix/wp-email-handler 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

moddix/wp-email-handler

最新稳定版本:1.1.0

Composer 安装命令:

composer require moddix/wp-email-handler

包简介

Plugin for use SMTP for email delivery

README 文档

README

Simple plugin for sending emails via SMTP using the PHPMailer library.
Works with Bedrock, native WordPress is not tested.

  • Uses Symfony Validator to validate configuration parameters.
  • Uses the Wonolog library for logging (You do not need to install this dependency, if it is missing, log messages will simply not be recorded).
  • The PHPMailer dependency is not specified because the wp-includes/PHPMailer class is used.
  • Env dependency not present because Bedrock is assumed.

Use an .env file to configure the plugin. Example:

# Email settings
EMAIL_FROM_NAME='Website name'
EMAIL_FROM_EMAIL='noreply@example.com'
SMTP_SSL_VERIFY_PEER=false# 'true' or 'false'
SMTP_SSL_VERIFY_PEER_NAME=false# 'true' or 'false'
SMTP_SSL_ALLOW_SELF_SIGNED=true# 'true' or 'false'
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER='noreply@example.com'
SMTP_PASS='123456'
SMTP_SECURE='' # 'tls', 'ssl', or leave empty for no encryption
SMTP_DEBUG='0' # 0 = off (for production use), 1 = client messages, 2 = client and server messages

统计信息

  • 总下载量: 59
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2025-09-09