Skip to content

DaPikk/Ko7-Email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI workflow Required minimum PHP Version Required minimum Ko7even Version Required SwiftMailer Version Github Issues

Email Module For Koseven (Ported from Leemo Studios Kohana 3.3 Swiwtmailer Emailer)

Original code

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.

Requires

  • PHP 7.4 - 8.1
  • Ko7even => 3.3.8
  • SwiftMailer => 6.0

Download

GitHub release

Installation

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

Koseven::modules(array(
  // ...
  'email' => MODPATH.'email',
  // ...
  ));

Then copy MODPATH/email/config/email.php to APPPATH/config/email.php.

NB! If swiftmailer is not included in the vendor folder, download proper swiftmailer version as per composer.json: "swiftmailer/swiftmailer": "^6.0" NB! "Swift Mailer" will stop being maintained at the end of November 2021.

Well done!

Example of usage

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

Enjoy!

About

Email helper module for Ko7even with Swiftmailer

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Packages

 
 
 

Contributors

Languages