Skip to content

werx/email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

werx/email

Use CodeIgniter's email library outside CodeIgniter.

Full Documentation at http://ellislab.com/codeigniter/user-guide/libraries/email.html

Usage

$email = new \werx\Email\Message();
$email->clear();
$email->from('[email protected]', 'My Name');
$email->to('[email protected]');
$email->subject('your subject line');
$email->attach($attachment, 'attachment', 'filename.html', 'text/html');
$email->message('Message body goes here.');
$email->send();

Installation

This package is installable and autoloadable via Composer as werx/email. If you aren't familiar with the Composer Dependency Manager for PHP, you should read this first.

$ composer require werx/email --prefer-dist

Testing

There are unit tests available for this package. To run them, you must have MailCatcher installed and running.

$ vendor/bin/phpunit

About

Use CodeIgniter's email library outside Codeigniter.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages