Extend Pixel & Tonic’s Guest Entries (v1) plugin with email notifications.
NOTE: this plugin requires the Guest Entries plugin to be installed and configured.
To install Guest Entries Notification, follow these steps:
- Download & unzip the file and place the
guestentriesnotification
directory into yourcraft/plugins
directory - -OR- do a
git clone https://github.com/dative/guestentriesnotification.git
directly into yourcraft/plugins
folder. You can then update it withgit pull
- -OR- install with Composer via
composer require dative/guestentriesnotification
- Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
guestentriesnotification
for Craft to see it. GitHub recently started appending-master
(the branch name) to the name of the folder for zip file downloads.
Guest Entries Notification works on Craft 2.4.x and Craft 2.5.x.
I've used the wbrowar/Craft-Guest-Entries-Email-Notification in the past, but I felt it lack support for multiple notifications hooks for the same Guest Entry section, and the ability to use templates for the email body.
Once you finish configuring Guest Entries, go to Guest Entries Notification settings:
You can add as many notifications you like, by clicking Add a notification
at the bottom of the table. You can configure the following settings:
Setting | Description |
---|---|
Enabled? | Turn notification on / off |
Section | Select which Guest Entries configured section you want to be notified of new entry. It will only display section that has a default author set. |
Emails | Required You can enter one or multiple comma-separated email addresses. Each email address will be notified individualy, and in case of failure, the faulty email address will be logged in Craft's logs. |
Subject | Required The email notification subject. The entry object is passed and can be used as such: New Blog Entry: {{ entry.title }} |
Template Path | Required The template path to be used as the body of the email. The entry object is passed. |
Format | Set the email format to either Plain Text or HTML |
Some things to do, and ideas for potential features:
- Allow email address to be supplied dynamically
- Improve settings validation that validates if email addresses are valid.
- Initial Release
Brought to you by Dative, Inc