duncan3dc/mailer

一个简单的邮件抽象,拥有清晰的接口

2.1.0 2022-09-08 16:11 UTC

This package is auto-updated.

Last update: 2024-08-30 01:32:07 UTC


README

一个简单的PHP邮件抽象,拥有清晰的接口

完整文档可在以下链接查看:http://duncan3dc.github.io/mailer/
PHPDoc API文档也可在以下链接查看:http://duncan3dc.github.io/mailer/api/

release build coverage

快速示例

使用本地邮件服务器发送电子邮件

(new \duncan3dc\Mailer\Server)
    ->createMessage()
    ->withFromAddress("admin@example.com", "Administrator")
    ->withRecipient("user@example.com", "Your Name")
    ->withSubject("Test Email")
    ->withContent("Hello")
    ->withAttachment("/tmp/UGqucq", "sensible-filename.xls")
    ->send();

更多信息请参阅 http://duncan3dc.github.io/mailer/

变更日志

从2.0.0版本开始,已有变更日志可用

获取帮助的地方

发现了错误?有问题?或者不确定某事物如何工作?
创建一个问题,我会尽力帮助。
或者您可以在Twitter上找到我

duncan3dc/mailer 企业版

作为Tidelift订阅的一部分提供

duncan3dc/mailer的维护者以及数千个其他包的维护者正在与Tidelift合作,为构建应用程序时使用的开源依赖项提供商业支持和维护。节省时间,降低风险,提高代码质量,同时支付您使用的确切依赖项的维护者。了解更多。