2017 © Pedro Peláez
 

platform-extension mailer

Mailing extension for Cartalyst Platform

image

sanatorium/mailer

Mailing extension for Cartalyst Platform

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 14 Versions
  • 0 % Grown

The README.md

sanatorium/mailer

Mailing extension for Cartalyst Platform, (*1)

Installation

Composer

Add repository to your composer.json, (*2)

"repositories": [
  {
    "type": "composer",
    "url": "http://repo.sanatorium.ninja"
  }
]

Download the package, (*3)

composer require sanatorium/mailer

Download

Download repository and copy it's contents to /extensions/sanatorium/mailer, (*4)

Documentation

Mailer is built to dispatch transactional emails when Event is triggered., (*5)

Getting started

Let's imagine you want to send emails to customer and admin when order is placed., (*6)

Preparing template

After installation, open Mailtransactions menu and choose + icon to Create new template, (*7)

The template for notification to admin would looks something like this:, (*8)

event: order.placed
subject: New order was placed
template: Hello admin!<br>New order was placed on your {{ config('platform.app.title') }} site<br>
receivers: {{ config('platform.mail.from.address') }}

Let's assume our $order object contains customer's email in $order->customer_email, therefore we create new template with notification for customer like this:, (*9)

event: order.placed
subject: Your order on {{ config('platform.app.title') }}
template: Hello!<br>Thanks for your order!<br><br>Best regards,<br>{{ config('platform.app.title') }} site<br>
receivers: {{ $order->customer_email }}

And then we trigger the event and pass data anywhere in the application like this:, (*10)

Event::fire('order.placed', ['order' => $order])

Changelog

3.0.4 - 2016-09-15 - Platform 5 support, caching 1.2.3 - 2016-06-14 - Added common seed 1.1.0 - 2016-05-08 - Added simple documentation 1.0.0 - 2016-03-25 - Basic functionality, (*11)

Support

Troubleshooting

Q: No hint path defined for [sanatorium/mailer] A: This might be caused by barryvdh/laravel-debugbar. Set following collector to false to get rid of this error message:, (*12)

'debugbar.collectors.mail' => false

The Versions

02/10 2016

dev-master

9999999-dev

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

laravel extension platform cartalyst madeinsane

02/10 2016

3.0.7

3.0.7.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

laravel extension platform cartalyst madeinsane

02/10 2016

3.0.6

3.0.6.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

laravel extension platform cartalyst madeinsane

15/09 2016

3.0.5

3.0.5.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

15/09 2016

3.0.4

3.0.4.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

15/09 2016

3.0.3

3.0.3.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

27/08 2016

3.0.2

3.0.2.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

27/08 2016

3.0

3.0.0.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

14/06 2016

1.2.4

1.2.4.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

08/05 2016

1.1.1

1.1.1.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

25/03 2016

1.0.8

1.0.8.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

 

by Avatar mattluk

25/03 2016

1.0.6

1.0.6.0

Mailing extension for Cartalyst Platform

  Sources   Download

The Requires

  • php >=5.4.0
  • cartalyst/composer-installers 1.2.*
  • platform/foundation 3.0.*

 

by Avatar mattluk

25/03 2016

1.0.1

1.0.1.0

Mailing extension

  Sources   Download

The Requires

  • php >=5.4.0
  • cartalyst/composer-installers 1.2.*
  • platform/foundation 3.0.*

 

by Avatar mattluk

25/03 2016

1.0.5

1.0.5.0

Mailing extension

  Sources   Download

The Requires

  • php >=5.4.0
  • cartalyst/composer-installers 1.2.*
  • platform/foundation 3.0.*

 

by Avatar mattluk