2017 © Pedro Peláez
 

library laravel-optivo

Optivo Mail Client for Laravel

image

longkyanh/laravel-optivo

Optivo Mail Client for Laravel

  • Sunday, February 28, 2016
  • by longnguyen
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 8 % Grown

The README.md

laravel-optivo

Optivo mailer for Laravel ( >= v5 )., (*1)

Usage:, (*2)

  • composer require longkyanh/laravel-optivo, (*3)

  • Dependency injection, (*4)

use Longkyanh\Mailer\Optivo as Mailer;

class TestEmailController extends Controller
{
    protected $mailer;

    public function __construct(Mailer $mailer)
    {
        $this->mailer = $mailer; // auto resolve by Laravel container
    }

    public function testEmail():Response
    {
        $mailingListName = 'a-test-mailing-list';
        $locale = 'en';
        $recipient = 'nguyentienlong88+1@gmail.com';
        $data = [
            'firstname' => time(),
            'lastname' => time(),
            'age' => time(),
            'message' => time(),            
        ];
        $temp = $this->mailer->send($mailingListName, $locale, $recipient, $data);

        return new Response($temp);
    }
}
  • Use with OptivoMailer Facade, (*5)

    • Add this line below into config/app.php

    Longkyanh\Mailer\OptivoServiceProvider::class,, (*6)

    • Then use in any class
    // before any class definition
    use Longkyanh\Mailer\OptivoMailer;
    
    // call send function anywhere you want
    OptivoMailer::send($mailingListName, $locale, $recipient, $data);
    

The Versions

28/02 2016

dev-master

9999999-dev https://github.com/nguyentienlong/laravel-optivo

Optivo Mail Client for Laravel

  Sources   Download

MIT

The Requires

 

by Long Nguyen

laravel mailer optivo mail client

28/02 2016

v0.5

0.5.0.0 https://github.com/nguyentienlong/laravel-optivo

Optivo Mail Client for Laravel

  Sources   Download

MIT

The Requires

 

by Long Nguyen

laravel mailer optivo mail client

28/02 2016

dev-refactor-1

dev-refactor-1 https://github.com/nguyentienlong/laravel-optivo

Optivo Mail Client for Laravel

  Sources   Download

MIT

The Requires

 

by Long Nguyen

laravel mailer optivo mail client

22/02 2016

v0.4

0.4.0.0 https://github.com/nguyentienlong/laravel-optivo

Optivo Mail Client for Laravel

  Sources   Download

MIT

The Requires

 

by Long Nguyen

laravel mailer optivo mail client

22/02 2016

v0.3

0.3.0.0 https://github.com/nguyentienlong/laravel-optivo

Optivo Mail Client for Laravel

  Sources   Download

MIT

The Requires

 

by Long Nguyen

laravel mailer optivo mail client

21/02 2016

v0.2

0.2.0.0 https://github.com/nguyentienlong/laravel-optivo

Optivo Mail Client for Laravel

  Sources   Download

MIT

The Requires

 

by Long Nguyen

laravel mailer optivo mail client

21/02 2016

v0.1

0.1.0.0

Optivo Mail Client for Laravel

  Sources   Download

The Requires

 

by Long Nguyen

laravel mailer optivo mail client