famelo/messaging

There is no license information available for the latest version (v1.0.0) of this package.

Little helper to send Messages with SwiftMailer rendered through Fluid.

Installs: 632

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:typo3-flow-package

v1.0.0 2014-09-30 13:25 UTC

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'