WP Manifestindependent plugin directory
manifest / email / required-email-notifications

Email Notifications WP Registry grade A-. Low-severity findings · 1 findingWP RegistryLow-severity findings · 1 findingOpen the reportA-

WordPress plugin to handle email notifications with custom adapters like Mandrill or Sendgrid

★ 13stars
2.0.1latest · 3 years ago

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/wearerequired/required-email-notifications/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

This is a WordPress plugin to handle email notifications with a easy to use API. It's extensible with custom adapters (email providers). Notifications will be send via WordPress cron job, triggered every hour.

Email Providers

Madrill

Mandrill provides a powerful API, built by the folks at MailChimp it's a good working service. You need a API-Key which you have to add to the plugin options, otherwise this adapter will not work.

Example Usage

Add Notifications

req_notifications()->addNotification()
    // we just support the Mandrill adapter at this time, probably others will follow
    ->setAdapter( 'Mandrill' )
    ->setSubject( 'r+ notification plugin on Fire' )
    // the body has to be a string, could be html
    ->setBody( 'My Super-Duper-Body Text.' )
    // more recipients are possible
    ->addRecipient( 'stefan@required.ch', 'Stefan' )
    ->addRecipient( 'silvan@required.ch', 'Silvan' )

    // the following is optional
    ->addCcRecipient( 'email@example.com', 'Example Mail' )
    // just one bcc recipient is possible
    ->setBcc( 'blind-carbon@copy.com' )
    // more than one attachment is possible, just call this method how often you like
    ->addAttachment( '/path/to/my/attachment.ext' )
    // this is the default state which will be set automatically
    ->setState( \Rplus\Notifications\NotificationState::ISNEW )
    // schedule is optional, when set, mail will be sent at this time
    // (or when the next cron job runs, after this time)
    ->setSchedule( date('Y-m-d H:i:s', strtotime( '+1 day' )) )
    // this could be defined in plugin options and optional be overridden here
    ->setSender( 'sender@example.com', 'The sender' )

    // save this notification
    ->save();

Update Notifications

// Update the subject
req_notifications()->getNotification( 123 /* The notification id */ )
    ->setSubject( 'I\'m a awesome notification. Trust me!' )
    ->save();
// Add another recipient
req_notifications()->getNotification( 123 /* The notification id */ )
    ->addRecipient( 'recipient@email.com' )
    ->save();

Releases

4 releases.

Tag
Published
2.0.1 latest
Jan 30, 2023 3 years ago
Jun 29, 2022 4 years ago
Nov 12, 2021 4 years ago
Sep 4, 2013 13 years ago

These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.

A- grade

Security

Email Notifications 2.0.0 · audited by WP Registry

Low-severity findings only.

1 low
Audited release
2.0.0
Findings
1
Worst severity
low
Content hash
c6b32261c8c9a42b96f16d69…

Findings

  • low Version mismatch between package slug and plugin header

    version_mismatch

    The audited package slug is required-email-notifications-2.0.1 and hashes version is 2.0.0; the main file Plugin Name header declares Version: 2.0.0. This mismatch can confuse vulnerability matching and update decisions.

    required-email-notifications.php:1-12

    Recommendation

    Align plugin header Version with the tagged release (2.0.1) or rename the package to match 2.0.0.

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.