roots/acorn-mail 问题修复 & 功能扩展

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

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

roots/acorn-mail

最新稳定版本:v1.0.3

Composer 安装命令:

composer require roots/acorn-mail

包简介

Simple WordPress SMTP using Acorn's mail configuration.

README 文档

README

Latest Stable Version Total Downloads Build Status

Acorn Mail is a simple package handling WordPress SMTP using Acorn's mail configuration.

Requirements

Installation

Install via Composer:

$ composer require roots/acorn-mail

Getting Started

Start by optionally publishing Acorn's mail config:

$ wp acorn mail:config

SMTP credentials can be found in the published mail.php config file and default to environment variables.

Usage

For most configurations, you can simply set the following variables in your environment:

MAIL_HOST=
MAIL_PORT=
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_FROM_ADDRESS=
MAIL_FROM_NAME=

If you need to change the default encryption from tls, you can set the encryption variable:

MAIL_ENCRYPTION=ssl

Once the credentials are properly configured, you can send a test email using Acorn's CLI:

$ wp acorn mail:test [--to=] [--subject=] [--body=]

You can customize the test email subject and body:

# Test with custom subject and body
$ wp acorn mail:test --subject="Deploy Test" --body="Deployment successful"

# Test with custom recipient
$ wp acorn mail:test --to=admin@example.com

If any errors are detected, they will be printed to console.

Bug Reports

If you discover a bug in Acorn Mail, please open an issue.

Contributing

Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.

License

Acorn Mail is provided under the MIT License.

统计信息

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

GitHub 信息

  • Stars: 25
  • Watchers: 2
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-03-19