Simple Swift Mailer wrapper
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
controllers/components
vendors
readme.markdown

readme.markdown

Simple Swift mailer component

Download swift mailer from http://swiftmailer.org/

Extract library to /plugins/swift/vendors/swift

Configure::write('ServerMailer.backend', 'smtp');
Configure::write('ServerMailer.backend.options', array('host' => 'localhost', 'port' => 25));

$this->Swift->send(array(
    'subject'  => 'Your subject line',
    'from'     => array('foo@foo.com' => 'Foo Bar'),
    'to'       => array('foo@bar.com' => 'Foo Bar'),
    'textBody' => 'Text email',
    'htmlBody' => '<p>HTML email</p>'
));