phalcana / email
Swift mailer wrapper for Phalcana
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:phalcana-module
Requires
- phalcana/core: ^0.8
- phalcana/installer: ^0.8
- swiftmailer/swiftmailer: ^5.4
This package is not auto-updated.
Last update: 2025-01-04 20:20:10 UTC
README
Phalcana Email Module
Swift mailer wrapper for the Phalcana project.
Installation
This module can be installed via composer using the below command.
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.
'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.
$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();