Extend Cockpit core functionality by sending a customized email when a collection is saved.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Controller
emails
views
README.md
actions.php
admin.php
bootstrap.php

README.md

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

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

Email

Copyright and license

Copyright 2018 pauloamgomes under the MIT license.