2017 © Pedro Peláez
 

library email-log

This package for log email details

image

deveyepax/email-log

This package for log email details

  • Wednesday, August 30, 2017
  • by apolloeyepax
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Laravel Email Helper/Logger

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)

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., (*2)

Prerequisites

A project setup using Laravel 5.4v or higher., (*3)

Installing

Run the command :

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', '');
    }

Example

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

Authors

  • Buwaneka Kalansuriya

See also the list of contributors who participated in this project., (*7)

License

This project is licensed under the MIT License - see the LICENSE.md file for details, (*8)

The Versions

30/08 2017

dev-master

9999999-dev

This package for log email details

  Sources   Download

The Requires

  • php >=5.6.4

 

The Development Requires

by Buwaneka Kalansuriya