famelo / messaging
该包最新版本(v1.0.0)没有提供许可证信息。
SwiftMailer 通过 Fluid 渲染发送消息的小助手。
v1.0.0
2014-09-30 13:25 UTC
Requires
This package is auto-updated.
Last update: 2024-09-05 18:43:54 UTC
README
SwiftMailer 通过 Fluid 渲染发送消息的小助手
$mail = new \Famelo\Messaging\Message(); $mail->setFrom(array('mail@me.com' => 'Me :)')) ->setTo(array('mail@you.com')) ->setSubject('How are you?') ->setMessage('My.Package:HelloWorld') ->assign('someVariable', 'Hello World') ->send();
这将尝试渲染位于 resource://My.Package/Private/Messages/HelloWorld.html 的模板
配置示例
Famelo: Messaging: defaultFrom: mneuhaus@famelo.com: 'Marc Neuhaus' # Redirect all messages to this E-Mail # for testing purposes redirectAllMessagesTo: foo@bar.com TYPO3: SwiftMailer: transport: type: 'Swift_SmtpTransport' options: host: 'mail.foo.com' username: 'foo' password: 'bar'