Skip to content
This repository has been archived by the owner on Feb 10, 2019. It is now read-only.

Email module for Kohana 3, based on Swift Mailer library

License

Notifications You must be signed in to change notification settings

Leemo/kohana-swift-mailer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 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

Languages

  • PHP 100.0%