emercury-dev/smtp-php-mailer
最新稳定版本:0.1.1
Composer 安装命令:
composer require emercury-dev/smtp-php-mailer
包简介
Emercury Mailer Bridge
README 文档
README
Provides Emercury integration for Symfony Mailer.
Configuration example:
# API MAILER_DSN=emercury+api://KEY@default
where:
KEYis your Emercury token
Getting Started
composer require emercury-dev/smtp-php-mailer
use Emercury\Smtp\SmtpApiTransport; use Symfony\Component\Mailer\Mailer; use Symfony\Component\Mime\Email; use Symfony\Component\Mime\Address; $mailer = new Mailer(new SmtpApiTransport('xxxTokenxxx')); $email = (new Email()) ->from(new Address('hello@example.com', 'Hello')) ->to(new Address('you@example.com', 'You')) ->replyTo(new Address('hello@example.com', 'Hello')) ->subject('Hello!') ->text('Sending emails is fun!') ->html('<p>Sending emails is fun with HTML integration!</p>'); $mailer->send($email);
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-26