README.txt 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. ## SUMMARY
  2. Integrates Drupal's mail system with Mandrill transactional emails, a service
  3. by the folks behind MailChimp. Learn more about Mandrill and how to sign up on
  4. [their website](http://mandrill.com). (Or don't, but then this module isn't
  5. terribly useful...)
  6. ## INSTALLATION NOTES
  7. * If you previously installed version 1.3, you will get the following error
  8. message when enabling the mandrill_template module:
  9. DatabaseSchemaObjectExistsException:
  10. Table <em class="placeholder">mandrill_template_map</em> already exists.
  11. This is ugly but irrelevant, everything should function normally.
  12. * If you are upgrading from one of many previous versions, You may also find
  13. an extra Mail System class in the Mail System configuration called "Mandrill
  14. module class". It's harmless, but feel free to delete it.
  15. ## CONFIGURATION
  16. ### Set Mandrill API Key
  17. Start by loading up the Mandrill admin page at Configuration -> Web
  18. Services (or admin/config/services/mandrill) and adding your API key from
  19. http://mandrillapp.com. Then you'll see more configuration options.
  20. ### Email Options
  21. * **From address:** The email address that emails should be sent from
  22. * **From name:** The name to use for sending (optional)
  23. * **Subaccount:** This selection box appears if you have configured subaccounts
  24. on your Mandrill account, and can be used to select the outgoing subaccount to
  25. use for Mandrill sending.
  26. * **_Input format_:** An optional input format to apply to the message body
  27. before sending emails
  28. ### Send Options
  29. * **Track opens:** Toggles open tracking for messages
  30. * **Track clicks:** Toggles click tracking for messages
  31. * **Strip query string:** Strips the query string from URLs when aggregating
  32. tracked URL data
  33. * **Log sends that are not registered in mailsystem:** Useful for configuring
  34. Mail System and getting more granular control over emails coming from various
  35. modules. Enable this and set the system default in Mail System to Mandrill,
  36. then trigger emails from various modules and functions on your site. You'll
  37. see Mandrill writing log messages identifying the modules and keys that are
  38. triggering each email. Now you can add these keys in Mail System and control
  39. each email-generating module/key pair specifically. WARNING: If you leave this
  40. enabled, you may slow your site significantly and clog your log files. Enable
  41. only during configuration.
  42. ### Google Analytics
  43. * **Domains:** One or more domains for which any matching URLs will
  44. automatically have Google Analytics parameters appended to their query string.
  45. Separate each domain with a comma.
  46. * **Campaign:** The value to set for the utm_campaign tracking parameter. If
  47. empty, the from address of the message will be used instead.
  48. ### Asynchronous Options
  49. * **Queue Outgoing Messages** Drops all messages sent through Mandrill into a
  50. queue without sending them. When Cron is triggered, a number of queued messages
  51. are sent equal to the specified Batch Size.
  52. * **Batch Size** The number of messages to send when Cron triggers. Must be
  53. greater than 0.
  54. ### SEND TEST EMAIL
  55. The Send Test Email function is pretty self-explanatory. The To: field will
  56. accept multiple addresses formatted in any Drupal mail system approved way.
  57. By configuring the Mandrill Test module/key pair in Mail System, you can
  58. use this tool to test outgoing mail for any installed mailer.
  59. ### Update Mail System settings
  60. Mandrill Mail interface is enabled by using the
  61. [Mail System module](http://drupal.org/project/mailsystem). Go to the
  62. [Mail System configuration page](admin/config/system/mailsystem) to start
  63. sending emails through Mandrill. Once you do this, you'll see a list of the
  64. module keys that are using Mandrill listed near the top of the Mandrill
  65. settings page.
  66. Once you set the site-wide default (and any other module classes that may be
  67. listed) to MandrillMailSystem, your site will immediately start using Mandrill
  68. to deliver all outgoing email.
  69. ### Module/key pairs
  70. The key is optional: not every module or email uses a key. That is why on the
  71. mail system settings page, you may see some modules listed without keys. For
  72. more details about this, see the help text on the mail system configuration
  73. page.
  74. # Sub-modules
  75. ## Templates
  76. In order to use the mandrill_template module, start by creating some templates
  77. in your Mandrill account. Once you do, you can add one or more Mandrill
  78. Template Maps for that template, specifying where in the template to place
  79. the email content and which module/key pair should be sent using the template.
  80. If you want to send multiple module/key pairs through the same Template, you
  81. can make Mandrill the default mail system and make that Template Map the
  82. default template, or you can clone the Template Map for each module/key pair
  83. and assign them individually.
  84. You should also consider enabling the css-inline feature in your Mandrill
  85. account under Settings -> Sending Options. For more info, see
  86. "http://help.mandrill.com/entries/24460141-Does-Mandrill-inline-CSS-automatically-".
  87. ## Reports
  88. The mandrill_reports sub-module provides reports on various metrics. It may
  89. take a long time to load. This module is due for some attention.
  90. ### Dashboard
  91. Displays charts that show volume and engagement, along with a tabular list of
  92. URL interactions for the past 30 days.
  93. ### Account Summary
  94. Shows account information, quotas, and all-time usage stats.
  95. ## Activity
  96. The Mandrill Activity sub-modules allows users to view email activity for any
  97. Drupal entity with a valid email address. Configuration and usage details are in
  98. sub-module's README file.
  99. ## Advanced Options
  100. If you would like to use additional template (or other) Mandrill API
  101. variables not implemented in this module, set them in hook_mail_alter under:
  102. $params['mandrill']. Have a look at mandrill.mail.inc to learn more.
  103. (Search for "mandrill parameters".)