jetfirephp / mailer
JetFire - Mail component
dev-master
2016-12-13 14:39 UTC
Requires
- php: >=5.4.0
Suggests
- phpmailer/phpmailer: Use phpmailer ~5.2
- swiftmailer/swiftmailer: Use swiftmailer stable version
This package is not auto-updated.
Last update: 2024-11-09 19:45:39 UTC
README
An interface for php mail function.
Installation
Via composer
composer require jetfirephp/mailer
Require SwiftMailer or PHPMailer
composer require phpmailer/phpmailer //or composer require swiftmailer/swiftmailer
Usage
$config = [ 'transport' => 'smtp', 'host' => 'localhost', 'port' => 1025, 'user' => '', 'pass' => '', ]; $mailer = new JetFire\Mailer\SwiftMailer\SwiftMailer($config); // or // $mailer = new JetFire\Mailer\PhpMailer\PhpMailer($config); $mail = new JetFire\Mailer\Mail($mailer); $mail->to('jet@fire.com') ->from('contact@fire.com') ->subject('Test') ->content('Test') ->send();
License
The JetFire Mailer is released under the MIT public license : http://www.opensource.org/licenses/MIT.