alyahmmed/mediasci-mail

dev-master 2018-02-08 11:41 UTC

This package is not auto-updated.

Last update: 2024-04-23 02:05:58 UTC


README

This package needs Laravel 5.x

Begin by installing this package through Composer. Require it directly from the Terminal to take the last stable version:

$ composer require alyahmmed/mediasci-mail dev-master

Once this operation completes, you must add the service provider. Open app/config/app.php, and add a new item to the providers array.

'providers' => [
    // ...
    Alyahmmed\MediasciMail\MailServiceProvider::class,
],

At this point the inliner should be already working with the default options. If you want to fine-tune these options, you can do so by publishing the configuration file:

$ php artisan vendor:publish --provider=Alyahmmed\MediasciMail\MailServiceProvider

Usage

$data = array(
    'subject' => 'test mail',
    'body' => '<h1>Hello</h1>',
    'from' => 'from@domain.com',
    'to' => 'to@domain.com',
);
\Alyahmmed\MediasciMail\MailManager::send($data);