Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pauloamgomes/cockpit-EmailOnSave

Extend Cockpit core functionality by sending a customized email when a collection is saved.
https://github.com/pauloamgomes/cockpit-EmailOnSave

Last synced: about 2 months ago
JSON representation

Extend Cockpit core functionality by sending a customized email when a collection is saved.

Awesome Lists containing this project

README

        

# Cockpit-EmailOnSave

Extend Cockpit core functionality by sending a customized email when a collection is saved. Such functionality can be useful when collections are saved outside of the CMS.

## Installation

1. Confirm that you have cockpit configured to send emails
2. Download zip and extract to 'your-cockpit-docroot/addons' (e.g. cockpitcms/addons/EmailOnSave)
3. Access module settings (http://your-cockpit-site/emailonsave) and confirm that configuration page is loaded

## Configuration

On the configuration page there are 2 main sections, the first, on the left, will provide email specific configurations:

* Email To email value (one email or multiple emails separated by comma)
* Email Subject text
* Email Body template, a token string ([:data]) can be used to include the collection data

On the right, there is a list with all available collections, enabling a specific collection will trigger the email every time the collection is saved.

![Configuration](https://monosnap.com/file/D2KAtXjK4jlPW9B2Fkml7GJIyBbkvF.png)

Using the default template, an email will render as below:

![Email](https://monosnap.com/file/QmW2FY0AcJN65TWQOmqQYhWt9AY5Hd.png)

## Copyright and license

Copyright 2018 pauloamgomes under the MIT license.