Skip to content

ts310/cake_swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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('[email protected]' => 'Foo Bar'),
    'to'       => array('[email protected]' => 'Foo Bar'),
    'textBody' => 'Text email',
    'htmlBody' => '<p>HTML email</p>'
));

About

Simple Swift Mailer wrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages