O2System Email is a PHP Email Protocol Sender Library which is build for working more powerful with O2System Framework, but also can be used for integrated with others as standalone version with limited features.
The best way to install O2System Email is to use Composer
composer require o2system/email
use O2System\Email;
// Create new email message
$message = new Email\Message();
$message->from( 'o2system.framework@gmail.com', 'O2System Framework' );
$message->subject( 'Testing email message' );
$message->body('This is testing email message body content.');
$message->to('mail@steevenz.com', 'Steeven Andrian Salim');
$message->priority( Email\Message::PRIORITY_HIGHEST );
// Create new email spool
$spool = new Email\Spool([
'protocol' => 'mail'
]);
$spool->send( $message );
Documentation is available on this repository wiki or visit this repository github page.
Please kindly mail us at contact@o2system.id
Please kindly submit your issues at Github so we can track all the issues along development and send a pull request to this repository.