Giter Club home page Giter Club logo

mandrill's Introduction

Mandrill for Craft CMS icon

Mandrill for Craft CMS

This plugin provides a Mandrill integration for Craft CMS.

Requirements

This plugin requires Craft CMS 3.1.5 or later.

Installation

You can install this plugin from the Plugin Store or with Composer.

From the Plugin Store

Go to the Plugin Store in your project’s Control Panel and search for “Mandrill”. Then click on the “Install” button in its modal window.

With Composer

Open your terminal and run the following commands:

# go to the project directory
cd /path/to/my-project.test

# tell Composer to load the plugin
composer require craftcms/mandrill

# tell Craft to install the plugin
./craft install/plugin mandrill

Setup

Once Mandrill is installed, go to Settings → Email, and change the “Transport Type” setting to “Mandrill”. Enter your Mandrill API Key (which you can get from mandrillapp.com/settings) and Subaccount (optional), then click Save.

Tip: The API Key and Subaccount settings can be set to an environment variables. See Environmental Configuration in the Craft docs to learn more about that.

mandrill's People

Contributors

angrybrad avatar brandonkelly avatar janhenckens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mandrill's Issues

Errors when running composer dump autoload

Description

When I run composer dump-autoload -a, I get a ton of console errors.

Steps to reproduce

  1. install mandrill plugin
  2. run composer dump-autoload -a

Additional info

  • Craft version: Craft CMS 3.7.12
  • PHP version: PHP 7.3.25 (cli) (built: Nov 24 2020 11:10:55) ( NTS )
  • Database driver & version: mysql Ver 15.1 Distrib 10.3.17-MariaDB, for Linux (x86_64) using readline 5.1
  • Plugins & versions:
Class Mandrill_Error located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_HttpError located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_ValidationError located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_Key located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_PaymentRequired located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Subaccount located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Template located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_ServiceUnavailable located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Message located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_Tag_Name located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_Reject located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Sender located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Url located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_TrClass Mandrill_Error located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_HttpError located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_ValidationError located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_Key located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_PaymentRequired located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Subaccount located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Template located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_ServiceUnavailable located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Message located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_Tag_Name located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_Reject located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Sender located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Url located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_TrackingDomain located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_Template located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Webhook located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_InboundDomain located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_InboundRoute located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Export located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_IP_ProvisionLimit located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Pool located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_NoSendingHistory located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_PoorReputation located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_IP located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_EmptyDefaultPool located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_DeleteDefaultPool located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
CackingDomain located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_Template located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Webhook located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_InboundDomain located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_InboundRoute located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Export located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_IP_ProvisionLimit located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_Pool located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_NoSendingHistory located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_PoorReputation located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_IP located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_EmptyDefaultPool located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_DeleteDefaultPool located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_DeleteNonEmptyPool located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_CustomDNS located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_CustomDNSPending located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Metadata_FieldLimit located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_MetadataField located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
lass Mandrill_Invalid_DeleteNonEmptyPool located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_CustomDNS located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Invalid_CustomDNSPending located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Metadata_FieldLimit located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.
Class Mandrill_Unknown_MetadataField located in ./vendor/mandrill/mandrill/src/Mandrill/Exceptions.php does not comply with psr-0 autoloading standard. Skipping.

installation instructions didn't work

php composer.phar require craftcms/mandrill gave me error: "Could not open input file: composer.phar"

composer require craftcms/mandrill did work.

Composer 2 warnings

While working with composer 1 or 2, we constantly getting warnings.
Checking the mandrill api, it isn't updated since 2015.
Also Mandrill will be renamed to Mailchimp Transactional, so it looks like this is the new api to be used https://github.com/mailchimp/mailchimp-transactional-php

Would be cool if the plugin can be adapted to use the new api which hopefully is working the same but without the composer warnings.
Screenshot from 2021-02-03 16-19-36

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.