markocupic/be_email
Composer 安装命令:
composer require markocupic/be_email
包简介
Send emails from the Contao backend. Backend extension for the Contao Open Source CMS
README 文档
README
Contao Backend E-Mail
Contao E-Mail Erweiterung für den Versand von Nachrichten aus dem Contao Backend. In den Contao Einstellungen kann definiert werden, woher das Adressbuch seine Adressen zieht. Entweder tl_member oder tl_user oder aus beiden Tabellen.
Kompatibilität
Die Version 3.3 ist nur zu Contao >=4.9 kompatibel.
Viel Spass mit Contao Backend E-Mail!
beEmailBeforeSend Hook
Mit dem beEmailBeforeSend-Hook können die beiden Objekte vor dem Versand manipuliert werden. Dazu muss eine Contao Hook Klasse geschrieben werden.
Damit der Hook via Annotation registriert wird, muss er in der services.yml registriert werden.
# services.yml
services:
_defaults:
autowire: true
autoconfigure: true
public: true
Vendorname\App\:
resource: ../../
exclude: ../../{DependencyInjection,Resources,Model,Widget}
Die Hook-Klasse könnte ungefähr so aussehen. Der Hook erwartet drei Parameter und keinen Rückgabewert.
<?php namespace Vendorname\App\Listener\ContaoHooks; use Contao\CoreBundle\ServiceAnnotation\Hook; /** * @Hook("beEmailBeforeSendHook") */ class BeEmailBeforeSendHook { /** * !!!Important * For manipulating data first and second parameter should be passed by reference! * @param $objEmail * @param $beEmailModel * @param $dc */ public function __invoke(&$objEmail, &$beEmailModel, $dc) { // f.ex. manipulate sender email address $objEmail->from = 'foo@myhost.com'; // f.ex. manipulate content $objEmail->text = 'bla bla!!'; $objEmail->html = 'bla bla!!'; } }
markocupic/be_email 适用场景与选型建议
markocupic/be_email 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 610 次下载、GitHub Stars 达 3, 最近一次更新时间为 2015 年 01 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Backend Email Client」 「Contao CMS」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 markocupic/be_email 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 markocupic/be_email 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 markocupic/be_email 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This bundle offers a simple backend explanation form field (inputType).
Preview of settings in footer of tt_content element in page module.
Mock PSR-18 HTTP client
An interactive tour through the TYPO3 backend.
crud widgets for laravel, to make an admin in few lines of code
Extensible library for building notifications and sending them via different delivery channels.
统计信息
- 总下载量: 610
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 14
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-03

