承接 emercury-dev/smtp-php-mailer 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

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:

  • KEY is 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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-26