{"id":15726700,"url":"https://github.com/grasmash/drupal-mandrill","last_synced_at":"2025-03-31T01:41:13.874Z","repository":{"id":66224306,"uuid":"292436732","full_name":"grasmash/drupal-mandrill","owner":"grasmash","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-03T01:42:36.000Z","size":618,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"2.x","last_synced_at":"2025-02-06T06:49:51.498Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/grasmash.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-03T01:41:24.000Z","updated_at":"2020-09-03T01:43:32.000Z","dependencies_parsed_at":"2023-05-16T07:00:40.490Z","dependency_job_id":null,"html_url":"https://github.com/grasmash/drupal-mandrill","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grasmash%2Fdrupal-mandrill","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grasmash%2Fdrupal-mandrill/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grasmash%2Fdrupal-mandrill/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/grasmash%2Fdrupal-mandrill/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/grasmash","download_url":"https://codeload.github.com/grasmash/drupal-mandrill/tar.gz/refs/heads/2.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246403893,"owners_count":20771526,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T22:40:23.374Z","updated_at":"2025-03-31T01:41:13.732Z","avatar_url":"https://github.com/grasmash.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## SUMMARY\n\nThis module integrates Drupals mail system with Mandrill, a transactional\nemail delivery API from the folks behind MailChimp.\n\nLearn more at http://mandrillapp.com\n\n## IMPORTANT CHANGES BETWEEN D7 and D8 RELEASES\n\n### The \"mandrill_test_mode\" variable has been removed\n\nIn the D7 version of this module, a \"mandrill_test_mode\" variable was being used\nto alter mail sending functionality when tests were run.\n\nIn the D8 version, this functionality is overridden in the MandrillTestService class.\n\n### The \"mandrill_api_classname\" variable is no longer used in tests\n\nThis variable defines the name of the main class in Mandrill's PHP library.\n\nWhile the variable still exists, it is no longer used as part of the included tests.\n\nDuring testing, the D7 version of this module would set the value of\n\"mandrill_api_classname\" to the name of a class in a spoof version of Mandrill's\nPHP library, which was included in the module.\n\nIn D8, we have removed the spoof library entirely and moved its functionality\ninto the MandrillTestAPI class. This class overrides functions in the MandrillAPI\nclass to add functionality for testing.\n\n### hook_mandrill_mail_alter() has been removed\n\nIn the D7 module, this hook allowed the message and mail sending function to be\nchanged.\n\nIn D8, changes should be made by overriding the send() function of MandrillService.\nSee MandrillTemplateService in the mandrill_template module for an example.\n\n## REQUIREMENTS\n\n* Mail System (https://drupal.org/project/mailsystem)\n* Mandrill PHP library (https://bitbucket.org/mailchimp/mandrill-api-php/get/1.0.52.zip)\n\n## INSTALLATION\n\n* Acquire a Mandrill API key from http://mandrillapp.com\n\n## INSTALLATION NOTES\n\n* If you are upgrading from one of many previous versions, You may find an extra\n  Mail System class in the Mailsystem configuration called \"Mandrill module\n  class\". It's harmless, but feel free to delete it.\n\n## CONFIGURATION\n\n### Set Mandrill API Key\nStart by loading up the Mandrill admin page at Configuration -\u003e Web\nServices (or admin/config/services/mandrill) and adding your API key from\nhttp://mandrillapp.com. Then you'll see more configuration options.\n\n### Email Options\n* **From address:** The email address that emails should be sent from\n* **From name:** The name to use for sending (optional)\n* **Subaccount:** This selection box appears if you have configured subaccounts\non your Mandrill account, and can be used to select the outgoing subaccount to\nuse for Mandrill sending.\n* **_Input format_:** An optional input format to apply to the message body\nbefore sending emails\n\n### Send Options\n* **Track opens:** Toggles open tracking for messages\n* **Track clicks:** Toggles click tracking for messages\n* **Strip query string:** Strips the query string from URLs when aggregating\ntracked URL data\n* **Log sends that are not registered in mailsystem:** Useful for configuring\nMail System and getting more granular control over emails coming from various\nmodules. Enable this and set the system default in Mail System to Mandrill,\nthen trigger emails from various modules and functions on your site. You'll\nsee Mandrill writing log messages identifying the modules and keys that are\ntriggering each email. Now you can add these keys in Mail System and control\neach email-generating module/key pair specifically. WARNING: If you leave this\nenabled, you may slow your site significantly and clog your log files. Enable\nonly during configuration.\n\n### Google Analytics\n* **Domains:** One or more domains for which any matching URLs will\nautomatically have Google Analytics parameters appended to their query string.\nSeparate each domain with a comma.\n* **Campaign:** The value to set for the utm_campaign tracking parameter. If\nempty, the from address of the message will be used instead.\n\n### Asynchronous Options\n* **Queue Outgoing Messages** Drops all messages sent through Mandrill into a\nqueue without sending them. When Cron is triggered, a number of queued messages\nare sent equal to the specified Batch Size.\n* **Batch Size** The number of messages to send when Cron triggers. Must be\ngreater than 0.\n\n### SEND TEST EMAIL\n\nThe Send Test Email function is pretty self-explanatory. The To: field will\naccept multiple addresses formatted in any Drupal mail system approved way.\nBy configuring the Mandrill Test module/key pair in Mail System, you can\nuse this tool to test outgoing mail for any installed mailer.\n\n### Update Mail System settings\nMandrill Mail interface is enabled by using the\n[Mail System module](http://drupal.org/project/mailsystem). Go to the\n[Mail System configuration page](admin/config/system/mailsystem) to start\nsending emails through Mandrill. Once you do this, you'll see a list of the\nmodule keys that are using Mandrill listed near the top of the Mandrill\nsettings page.\n\nOnce you set the site-wide default (and any other module classes that may be\nlisted) to MandrillMailSystem, your site will immediately start using Mandrill\nto deliver all outgoing email.\n\n### Module/key pairs\nThe key is optional: not every module or email uses a key. That is why on the\nmail system settings page, you may see some modules listed without keys. For\nmore details about this, see the help text on the mail system configuration\npage.\n\n# Sub-modules\n\n## Templates\n\nIn order to use the mandrill_template module, start by creating some templates\nin your Mandrill account. Once you do, you can add one or more Mandrill\nTemplate Maps for that template, specifying where in the template to place\nthe email content and which module/key pair should be sent using the template.\nIf you want to send multiple module/key pairs through the same Template, you\ncan make Mandrill the default mail system and make that Template Map the\ndefault template, or you can clone the Template Map for each module/key pair\nand assign them individually.\n\nYou should also consider enabling the css-inline feature in your Mandrill\naccount under Settings -\u003e Sending Options. For more info, see\n\"http://help.mandrill.com/entries/24460141-Does-Mandrill-inline-CSS-automatically-\".\n\n## Reports\nThe mandrill_reports sub-module provides reports on various metrics. For\nperformance, metrics are cached after the initial load. Clear your cache for\nthe most current metrics.\n\n### Dashboard\nDisplays charts that show volume and engagement, along with a tabular list of\nURL interactions for the past 30 days.\n\n### Account Summary\nShows account information, quotas, and all-time usage stats.\n\n## Activity\nThe Mandrill Activity sub-modules allows users to view email activity for any\nDrupal entity with a valid email address. Configuration and usage details are in\nsub-module's README file.\n\n## Advanced Options\nIf you would like to use additional template (or other) Mandrill API\nvariables not implemented in this module, set them in hook_mail_alter under:\n$params['mandrill'].\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrasmash%2Fdrupal-mandrill","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgrasmash%2Fdrupal-mandrill","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgrasmash%2Fdrupal-mandrill/lists"}