| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 | ## SUMMARYIntegrates Drupal's mail system with Mandrill transactional emails, a serviceby the folks behind MailChimp. Learn more about Mandrill and how to sign up on[their website](http://mandrill.com). (Or don't, but then this module isn'tterribly useful...)## INSTALLATION NOTES* If you previously installed version 1.3, you will get the following error  message when enabling the mandrill_template module:    DatabaseSchemaObjectExistsException:    Table <em class="placeholder">mandrill_template_map</em> already exists.  This is ugly but irrelevant, everything should function normally.* If you are upgrading from one of many previous versions, You may also find  an extra Mail System class in the Mail System configuration called "Mandrill  module class". It's harmless, but feel free to delete it.## CONFIGURATION### Set Mandrill API KeyStart by loading up the Mandrill admin page at Configuration -> WebServices (or admin/config/services/mandrill) and adding your API key fromhttp://mandrillapp.com. Then you'll see more configuration options.### Email Options* **From address:** The email address that emails should be sent from* **From name:** The name to use for sending (optional)* **Subaccount:** This selection box appears if you have configured subaccountson your Mandrill account, and can be used to select the outgoing subaccount touse for Mandrill sending.* **_Input format_:** An optional input format to apply to the message bodybefore sending emails### Send Options* **Track opens:** Toggles open tracking for messages* **Track clicks:** Toggles click tracking for messages* **Strip query string:** Strips the query string from URLs when aggregatingtracked URL data* **Log sends that are not registered in mailsystem:** Useful for configuringMail System and getting more granular control over emails coming from variousmodules. Enable this and set the system default in Mail System to Mandrill,then trigger emails from various modules and functions on your site. You'llsee Mandrill writing log messages identifying the modules and keys that aretriggering each email. Now you can add these keys in Mail System and controleach email-generating module/key pair specifically. WARNING: If you leave thisenabled, you may slow your site significantly and clog your log files. Enableonly during configuration.### Google Analytics* **Domains:** One or more domains for which any matching URLs willautomatically have Google Analytics parameters appended to their query string.Separate each domain with a comma.* **Campaign:** The value to set for the utm_campaign tracking parameter. Ifempty, the from address of the message will be used instead.### Asynchronous Options* **Queue Outgoing Messages** Drops all messages sent through Mandrill into aqueue without sending them. When Cron is triggered, a number of queued messagesare sent equal to the specified Batch Size.* **Batch Size** The number of messages to send when Cron triggers. Must begreater than 0.### SEND TEST EMAILThe Send Test Email function is pretty self-explanatory. The To: field willaccept multiple addresses formatted in any Drupal mail system approved way.By configuring the Mandrill Test module/key pair in Mail System, you canuse this tool to test outgoing mail for any installed mailer.### Update Mail System settingsMandrill Mail interface is enabled by using the[Mail System module](http://drupal.org/project/mailsystem). Go to the[Mail System configuration page](admin/config/system/mailsystem) to startsending emails through Mandrill. Once you do this, you'll see a list of themodule keys that are using Mandrill listed near the top of the Mandrillsettings page.Once you set the site-wide default (and any other module classes that may belisted) to MandrillMailSystem, your site will immediately start using Mandrillto deliver all outgoing email.### Module/key pairsThe key is optional: not every module or email uses a key. That is why on themail system settings page, you may see some modules listed without keys. Formore details about this, see the help text on the mail system configurationpage.# Sub-modules## TemplatesIn order to use the mandrill_template module, start by creating some templatesin your Mandrill account. Once you do, you can add one or more MandrillTemplate Maps for that template, specifying where in the template to placethe email content and which module/key pair should be sent using the template.If you want to send multiple module/key pairs through the same Template, youcan make Mandrill the default mail system and make that Template Map thedefault template, or you can clone the Template Map for each module/key pairand assign them individually.You should also consider enabling the css-inline feature in your Mandrillaccount under Settings -> Sending Options. For more info, see"http://help.mandrill.com/entries/24460141-Does-Mandrill-inline-CSS-automatically-".## ReportsThe mandrill_reports sub-module provides reports on various metrics. It maytake a long time to load. This module is due for some attention.### DashboardDisplays charts that show volume and engagement, along with a tabular list ofURL interactions for the past 30 days.### Account SummaryShows account information, quotas, and all-time usage stats.## ActivityThe Mandrill Activity sub-modules allows users to view email activity for anyDrupal entity with a valid email address. Configuration and usage details are insub-module's README file.## Advanced OptionsIf you would like to use additional template (or other) Mandrill APIvariables not implemented in this module, set them in hook_mail_alter under:$params['mandrill']. Have a look at mandrill.mail.inc to learn more.(Search for "mandrill parameters".)
 |