Skip to content

Releases: BinarCode/laravel-mailator

4.1.2

17 Feb 12:50
a8861b2

Choose a tag to compare

Fixed

load only missing logs

4.1.1

17 Feb 11:34

Choose a tag to compare

Fixed

  • eager loading logs when running the schedule:run command

4.1.0

27 Jun 19:06
e165af9

Choose a tag to compare

Added

  • Allow before constraint to setup hours:
 Scheduler::init('Invoice reminder.')
  ->recipients($mail = 'zoo@bar.com')
  ->mailable(
      (new InvoiceReminderMailable())->to('foo@bar.com')
  )
  ->hours(1)
  ->before(now()->addHours(3));

The code above will send the email InvoiceReminderMailable to zoo@bar.com 1 hour before now + 3 hours. So basically the email will be sent in 1 hour.

4.0.0

10 Feb 09:41
7934ab2

Choose a tag to compare

Added

  • PHPStan
  • Clean up
  • Drop support for Laravel 8

3.11.1

09 Feb 14:35

Choose a tag to compare

Merge branch '3.x' of github.com:BinarCode/laravel-mailator into 3.x

3.11.0

09 Feb 14:18

Choose a tag to compare

Added

  • Support for Laravel 9

3.10.0

03 Sep 09:31
1872b17

Choose a tag to compare

Added

Events

Mailator has few events you can use.

If your mailable class extends the Binarcode\LaravelMailator\Contracts\Beforable, you will be able to inject the before method, that will be called right before the sending the email.

If your mailable class extends the Binarcode\LaravelMailator\Contracts\Afterable, you will be able to inject the before method, that will be called right after the mail has being sent.

And latest, after each mail has being sent, mailator will fire the Binarcode\LaravelMailator\Events\ScheduleMailSentEvent event, so you can listen for it.

3.9.4

25 Jul 12:16

Choose a tag to compare

Merge branch '3.x' of github.com:BinarCode/laravel-mailator into 3.x

3.9.3

25 Jul 12:13

Choose a tag to compare

Filter out myself when saving

3.9.2

25 Jul 11:25

Choose a tag to compare

Ensure doesn't send unique twice