Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

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.

About

An interface for php mail function using swiftmailer or phpmailer

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.