A wrapper that helps working with swiftmailer in li3
Installation:
- clone
- run
git submodule init
- run
git submodule update
. This will import the swiftmailer library to libraries/swiftmailer - add to your app. Here is an example:
Libraries::add('li3_swiftmailer', array(
'connection' => array(
'development' => array(
'type' => 'smtp',
'host' => 'dev.smtp-server.example',
'port' => 25,
'from' => '[email protected]',
),
'test' => array(
'type' => 'smtp',
'host' => 'test.smtp-server.example',
'port' => 25,
'from' => '[email protected]',
),
'production' => array(
'type' => 'smtp',
'host' => 'production.smtp-server.example',
'port' => 25,
'from' => '[email protected]',
'username' => 'user',
'password' => 'staple horse battery',
),
)
));