, (*1)
Phalcana Email Module
Swift mailer wrapper for the Phalcana project., (*2)
Installation
This module can be installed via composer using the below command., (*3)
composer require phalcana/email
In order for the module to be loaded into Phalcana the module needs to be added into the modules config.
This can be found in the app/config/static.php
or in the local version app/config/setup.php
. For example., (*4)
'modules' => array(
'email' => MODPATH.'email/',
'userguide' => MODPATH.'userguide/',
),
Basic Usage
You can get a fresh instance of the email module by getting it from the dependency injector., (*5)
$email = $this->getDi()->get('email', array('My email subject'))
->to('email@example.com', 'My name')
->from('info@example.com', 'Website name')
->message('Message text here')
->send();