voronkovich/wordpress-mailer-dsn
最新稳定版本:v1.0.1
Composer 安装命令:
composer require voronkovich/wordpress-mailer-dsn
包简介
WordPress plugin to configure wp_mail() via MAILER_DSN environment variable.
关键字:
README 文档
README
WordPress plugin to configure wp_mail() via MAILER_DSN environment variable.
Installation
Use the Composer:
composer require popartdesign/wordpress-mailer-dsn
Don't forget to activate the plugin, if you don't use the mu-plugins directory.
Define (in your .env file for example) the MAILER_DSN variable like this:
MAILER_DSN='mail://localhost'
Configuraton
Supported protocols:
mailsendmailqmailsmtpsmtps
Additional configuration could be applied via query string:
MAILER_DSN='mail://localhost?XMailer=SuperMailer&FromName=CoolSite'
PHPMailer configured by public properties, so you can use any of them. All allowed options could be found at PHPMailer Docs.
Examples
Sendmail
MAILER_DSN='sendmail://localhost?Sendmail=/usr/sbin/sendmail%20-oi%20-t'
SMTP
MAILER_DSN='smtp://user:password@localhost?SMTPDebug=3&Timeout=1000'
Gmail
MAILER_DSN='smtps://user@gmail.com:password@smtp.gmail.com:587'
Advanced
Sometimes it's not convinient to configure all options by the only one MAILER_DSN variable. For example, if you want to configure DKIM, you will end with very long unreadable DSN string. In this cases you can use one of MAILER_* variables:
MAILER_DEBUGMAILER_DEBUG_OUTPUTMAILER_FROMMAILER_FROM_NAMEMAILER_SENDERMAILER_DKIM_PRIVATEMAILER_DKIM_PASSPHRASEMAILER_DKIM_SELECTORMAILER_DKIM_IDENTITYMAILER_DKIM_DOMAIN- and etc.
See source code for all available vars.
License
Copyright (c) Voronkovich Oleg. Distributed under the MIT.
voronkovich/wordpress-mailer-dsn 适用场景与选型建议
voronkovich/wordpress-mailer-dsn 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 318 次下载、GitHub Stars 达 3, 最近一次更新时间为 2023 年 02 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「wordpress」 「phpmailer」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 voronkovich/wordpress-mailer-dsn 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 voronkovich/wordpress-mailer-dsn 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 voronkovich/wordpress-mailer-dsn 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
WordPress plugin to configure wp_mail() via MAILER_DSN environment variable.
PHPMailer implementation for SilverStripe allowing custom smtp.
A stylish PHP application framework crafted using Slim, Twig, Eloquent and Sentinel designed to get you from clone to production in a matter of minutes.
PHPMailer helper class for sending emails using SMTP
Molajo Email: platform independent support with adapters for PHPMailer, SwiftMail, and native PHP mail
统计信息
- 总下载量: 318
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-20