Skip to content

Sebjugate/kohana-swift-mailer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Email Module For Kohana 3.3

Attention! This module is very different from the original module. The structure of this module has been heavily reworked to be more in line with the principles used in Kohana.

Installation

Edit your bootstrap file APPPATH/bootstrap.php and enable email module:

Kohana::modules(array(
  // Some modules
  'email' => MODPATH.'email',
  // Some other modules
  ));

Then copy MODPATH/email/config/email.php to APPPATH/config/email.php. Well done!

Example of usage

Email::instance()
  ->from('sender@example.com')
  ->to('first.recipient@example.com')
  ->to('second.recipient@example.com', 'Mr. Recipient')
  ->subject('Hi there!')
  ->body('Hi, guys! This is my awesome email.')
  ->send();

Enjoy, guys!

About

Email module for Kohana 3, based on Swift Mailer library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published