dev-master
9999999-devThis package for log email details
The Requires
- php >=5.6.4
The Development Requires
by Buwaneka Kalansuriya
This package for log email details
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., (*1)
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., (*2)
A project setup using Laravel 5.4v or higher., (*3)
composer require deveyepax/email-log dev-master
Add: 'providers' => [ DevEyepax\EmailLog\EmailLogServiceProvider::class, ] in config/app, (*4)
run:, (*5)
composer dump-autoload
php artisan vendor:push
php artisan migrate
After that you can use MailHelper inside controllers.. etc., (*6)
public function send(Request $request, MailHelper $helper){ $helper->sendMail('123@gma.com', [], [], '', ['content' => "awesome", 'title' => 'test'], 'emails.send', ''); }
MailHelper $helper; $helper->sendMail($email-address, $cc, $bcc, $subject, $body, $template, $attachment-location);
Parameter | Type | Description |
---|---|---|
$email-address | String | to whom e-mail is sent |
$cc | array | List of receivers |
$bcc | array | List of receivers |
$subject | String | Subject of the mail |
$body | array | passed to the body |
$template | String | template file |
$attachment-location | String | file path to attachment |
See also the list of contributors who participated in this project., (*7)
This project is licensed under the MIT License - see the LICENSE.md file for details, (*8)
This package for log email details