deveyepax/email-log

There is no license information available for the latest version (dev-master) of this package.

This package for log email details

dev-master 2017-08-30 05:55 UTC

This package is not auto-updated.

Last update: 2024-10-13 05:13:05 UTC


README

This is a laravel version 5.4 implementation of a Helper class to send e-mails. This implementation reuses a Mailable object to send mails.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

A project setup using Laravel 5.4v or higher.

Installing

Run the command :

composer require deveyepax/email-log dev-master

Add: 'providers' => [ DevEyepax\EmailLog\EmailLogServiceProvider::class, ] in config/app

run:

composer dump-autoload
php artisan vendor:push
php artisan migrate

After that you can use MailHelper inside controllers.. etc.

public function send(Request $request, MailHelper $helper){
        $helper->sendMail('123@gma.com', [], [], '', ['content' => "awesome", 'title' => 'test'], 'emails.send', '');
    }

Example

MailHelper $helper;
$helper->sendMail($email-address, $cc, $bcc, $subject, $body, $template, $attachment-location);

Authors

  • Buwaneka Kalansuriya

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details