Skip to content
An interface for php mail function using swiftmailer or phpmailer
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
composer.json
composer.lock
readme.md

readme.md

JetFire Mailer

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.

You can’t perform that action at this time.