phalcana/email

Swift mailer wrapper for Phalcana

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:phalcana-module

v0.8.0 2015-09-13 12:18 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:17:19 UTC


README

Latest Stable Version Build Status Total Downloads License

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();