2017 © Pedro Peláez
 

flarum-extension pretty-mail

Make emails pretty

image

reflar/pretty-mail

Make emails pretty

  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 31 % Grown

The README.md

Pretty Mail by FriendsOfFlarum

License Latest Stable Version OpenCollective, (*1)

A Flarum extension. Make custom HTML templates for emails!, (*2)

  • Configure your custom email template from the extension settings
  • This supports all emails sent by Flarum, and 3rd party extensions

Extending

It is possible to make additional variables available to the templates from other extensions. For example:, (*3)

In your extend.php, (*4)

(new \FoF\PrettyMail\Extend\PrettyMail)
    ->addTemplateData('myNewVariable', Callback\NewVariableCallback::class),

The callback should be an invokable class, and accept \Flarum\Notification\Blueprint\BlueprintInterface, returning the string value that should be assigned to your new variable., (*5)

You should also include a translation using the key fof-pretty-mail.admin.settings.attributes.myNewVariable, which will be displayed in the extension settings page, so that admin users know what your new key is providing them, and were they should use it in their template., (*6)

Installation

Install with composer:, (*7)

composer require fof/pretty-mail:"*"

Updating

composer update fof/pretty-mail

Important Note

Due to how Flarum handles certain emails, I had to utilize a "hack" to get it to work. Please report any issues you have to our Github., (*8)

, (*9)

An extension by FriendsOfFlarum., (*10)

The Versions

19/04 2018

dev-master

9999999-dev

Make emails pretty

  Sources   Download

MIT

The Requires

 

mail extension flarum

19/04 2018

0.1.0-beta.2

0.1.0.0-beta2

Make emails pretty

  Sources   Download

MIT

The Requires

 

mail extension flarum

18/04 2018

0.1.0-beta.1

0.1.0.0-beta1

Make emails pretty

  Sources   Download

MIT

The Requires

 

mail extension flarum