2017 © Pedro Peláez
 

library postman

Schedule a task for sending e-mail

image

agoalofalife/postman

Schedule a task for sending e-mail

  • Saturday, January 6, 2018
  • by agoalofalife
  • Repository
  • 1 Watchers
  • 2 Stars
  • 36 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 3 % Grown

The README.md

POSTMAN

, (*1)

, (*2)

Note Required PHP version >= 7.1, (*3)

Obviously, you must have configured the database and Mail, (*4)

What is it?, (*5)

This package is for Laravel. Using the interface you can send the emails on schedule., (*6)

It's simple! You are creating a letter and sending it at just the right time!, (*7)

You intrigued?, (*8)

Read on!, (*9)

Install

Installed via composer., (*10)

composer require agoalofalife/postman

Before you install the package, it is important to define your language., (*11)

In file config/app.php, (*12)

 'locale' => 'en',

Note Out of the box en and ru., (*13)

if if your version is below laravel 5.5. insert service provider :, (*14)

...
agoalofalife\postman\SheduleEmailServiceProvider::class

Next, you're executing the command:, (*15)

php artisan postman:install

Now you can insert the template where you want., (*16)

It could be your administrative panel or what else., (*17)

...
  <body>
    @include('postman::app')
    ...

now you can see your interface!, (*18)

postman, (*19)

And last.. You need to work cron. App\Console\Kernel, (*20)

 if (config('postman.switcher')) {
            $schedule->command(ParseCommand::class)->everyMinute();
        }

Custom Mode

Each letter has its own algorithm sending. Example : - Send all as BCC - Send all as CC For this there are routines that implement the interface, (*21)

agoalofalife\postman\Contract\Mode::class

You must implement all three methods: * getName() * getDescription() * postEmail(), (*22)

Of the first two all clear from the title. postEmail() within the logic of sending., (*23)

If something is not clear you can see examples in the source code., (*24)

Once you have implemented his mode, it is necessary to specify in the configuration file and execute the command :, (*25)

php artisan postman:seed 

Config

  • You can set the column size
 'ui' => [
        'table' => [
            'id' => 60,
            'date' => 180,
            'email.theme' => 180,
            'email.text' => 400,
            'mode.name' => 140,
            'status_action_human' => 130,
            'updated_at' => 140,
            'operations' => 240,
        ]
    ]
  • List of available modes

'modes' => [ \agoalofalife\postman\Modes\OneToAll::class, \agoalofalife\postman\Modes\Each::class, ]

Vue components

If you don't want to set using the templating Blade, it is possible to migrate a component to vue., (*26)

php artisan vendor:publish --tag=postman-components

Middleware

You can define your rules in config file., (*27)


/* |-------------------------------------------------------------------------- | Middleware |-------------------------------------------------------------------------- | Set middleware */ 'middleware' => '',

The Versions

06/01 2018

dev-master

9999999-dev

Schedule a task for sending e-mail

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar agoalofalife

laravel mail email shedule

05/12 2017

v0.2.2

0.2.2.0

Schedule a task for sending e-mail

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar agoalofalife

laravel mail email shedule

05/12 2017

v0.2.1

0.2.1.0

Schedule a task for sending e-mail

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar agoalofalife

laravel mail email shedule

31/10 2017

v0.2.0

0.2.0.0

Schedule a task for sending e-mail

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar agoalofalife

laravel mail email shedule

27/10 2017

v0.1.2

0.1.2.0

Schedule a task for sending e-mail

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar agoalofalife

laravel mail email shedule

27/10 2017

v0.1.1

0.1.1.0

Schedule a task for sending e-mail

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar agoalofalife

laravel mail email shedule

15/10 2017

v0.1.0

0.1.0.0

Schedule a task for sending e-mail

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Avatar agoalofalife

laravel mail email shedule