定制 artfulrobot/email 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

artfulrobot/email

最新稳定版本:1.4.5

Composer 安装命令:

composer require artfulrobot/email

包简介

Email related classes

关键字:

README 文档

README

This is separated from https://codeberg.org/artfulrobot/artfulrobot as I still want to use it in 2024 but without needing to bring in a lot of old library code.

Email class

Generate MIME emails, with attachments and inline images supported. Example simple use:

use ArtfulRobot\Email;

$email = new Email(
  $to = 'friend@example.com',
  $subject = 'demo',
  $body = '<p><strong>Hello</strong> world.</p>',
  $from = '"Fred Flintstone" <fred@example.org>"',
  $return_path = 'valid-on-your-server-or-verp@example.org'
  );
$result = $email->send();

Uses PHP's mail() function, but you can inject your own signature-matched callback instead via $email->setMailService($callback)

A common use-case is to extend the Email class with a local one, e.g. to add signatures/headers.

Changelog

  • v1.4.4 imported from artfulrobot/artfulrobot v1.4.4 and updated for phpunit, php8.1, added type hints.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2024-07-17