定制 sitegeist/neos-symfonymailer-factories 二次开发

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

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

sitegeist/neos-symfonymailer-factories

最新稳定版本:v1.0.2

Composer 安装命令:

composer require sitegeist/neos-symfonymailer-factories

包简介

无描述信息

README 文档

README

Factories to create SymfonyMailer and Mail instances in Neos.Flow

Authors & Sponsors

The development and the public releases of this package is generously sponsored by our employer http://www.sitegeist.de.

Installation

Sitegeist.Neos.SymfonyMailer.Factories is available via packagist composer require sitegeist/neos-symfonymailer-factories. We use semantic-versioning, so every breaking change will increase the major version number.

Usage via PHP

The package provides two factory classes to create Mailers and Emails easily.

  • Sitegeist\Neos\SymfonyMailer\Factories\MailerFactory with the method createMailer that will create a mailer for the specified dsn or the configured default dsn.
  • Sitegeist\Neos\SymfonyMailer\Factories\MailFactory with the method createMail that will create a mail based on the provided arguments.

Example:

use Sitegeist\Neos\SymfonyMailer\Factories\MailerFactory; use Sitegeist\Neos\SymfonyMailer\Factories\MailFactor; class MailController { #[Flow\Inject] protected MailerFactory $mailerFactory; #[Flow\Inject] protected MailFactory $mailFactory; public function exampleAction() { $mailer = $this->mailerFactory->createMailer(); $mail = $this->mailFactory->createMail( $subject, $recipient, $sender, $text, $html ); $mailer->send($mail); }

Configuration

The package allows to configure the dsn used by the mailer globally via settings. You can use the dsn specification as it is documented by symfony here: https://symfony.com/doc/current/mailer.html#transport-setup

Sitegeist: Neos: SymfonyMailer: dsn: 'sendmail://default'

Contribution

We will gladly accept contributions. Please send us pull requests.

License

See LICENSE

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固