famelo / messaging
Little helper to send Messages with SwiftMailer rendered through Fluid.
Installs: 631
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:typo3-flow-package
Requires
This package is auto-updated.
Last update: 2024-11-05 19:02:14 UTC
README
Little helper to send Messages with SwiftMailer rendered through 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();
This will try to render a Template at resource://My.Package/Private/Messages/HelloWorld.html
Configuration Example
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'