You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

150 lines
5.0 KiB

  1. =========================
  2. Mail tracking for Mailgun
  3. =========================
  4. .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  5. !! This file is generated by oca-gen-addon-readme !!
  6. !! changes will be overwritten. !!
  7. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  8. .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
  9. :target: https://odoo-community.org/page/development-status
  10. :alt: Beta
  11. .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
  12. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  13. :alt: License: AGPL-3
  14. .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fsocial-lightgray.png?logo=github
  15. :target: https://github.com/OCA/social/tree/12.0/mail_tracking_mailgun
  16. :alt: OCA/social
  17. .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
  18. :target: https://translation.odoo-community.org/projects/social-12-0/social-12-0-mail_tracking_mailgun
  19. :alt: Translate me on Weblate
  20. .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
  21. :target: https://runbot.odoo-community.org/runbot/205/12.0
  22. :alt: Try me on Runbot
  23. |badge1| |badge2| |badge3| |badge4| |badge5|
  24. This module integrates mail_tracking events with Mailgun webhooks.
  25. Mailgun (https://www.mailgun.com/) is a service that provides an e-mail
  26. sending infrastructure through an SMTP server or via API. You can also
  27. query that API for seeing statistics of your sent e-mails, or provide
  28. hooks that processes the status changes in real time, which is the
  29. function used here.
  30. **Table of contents**
  31. .. contents::
  32. :local:
  33. Configuration
  34. =============
  35. You must configure Mailgun webhooks in order to receive mail events:
  36. 1. Got a Mailgun account and validate your sending domain.
  37. 2. Go to Webhook tab and configure the below URL for each event:
  38. .. code:: html
  39. https://<your_domain>/mail/tracking/all/<your_database>
  40. Replace '<your_domain>' with your Odoo install domain name
  41. and '<your_database>' with your database name.
  42. In order to validate Mailgun webhooks you have to configure the following system
  43. parameters:
  44. - `mailgun.apikey`: You can find Mailgun api_key in your validated sending
  45. domain.
  46. - `mailgun.api_url`: It should be fine as it is, but it could change in the
  47. future.
  48. - `mailgun.domain`: In case your sending domain is different from the one
  49. configured in `mail.catchall.domain`.
  50. - `mailgun.validation_key`: If you want to be able to check mail address
  51. validity you must config this parameter with your account Public Validation
  52. Key.
  53. You can also config partner email autocheck with this system parameter:
  54. - `mailgun.auto_check_partner_email`: Set it to True.
  55. Usage
  56. =====
  57. In your mail tracking status screens (explained on module *mail_tracking*), you
  58. will see a more accurate information, like the 'Received' or 'Bounced' status,
  59. which are not usually detected by normal SMTP servers.
  60. It's also possible to make some checks to the partner's email addresses against
  61. the Mailgun API:
  62. - Check if the partner's email is in Mailgun's bounced list.
  63. - Check the validity of the partner's mailbox.
  64. - Force the partner's email into Mailgun's bounced list or delete from it.
  65. It's also possible to manually check a message mailgun tracking when the webhook
  66. couldn't be captured. For that, go to that message tracking form, press the
  67. button *Check Mailgun*. It's important to note that tracking events have quite a
  68. short lifespan, so after 24h they won't be recoverable.
  69. Known issues / Roadmap
  70. ======================
  71. * There's no support for more than one Mailgun mail server.
  72. Bug Tracker
  73. ===========
  74. Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_.
  75. In case of trouble, please check there if your issue has already been reported.
  76. If you spotted it first, help us smashing it by providing a detailed and welcomed
  77. `feedback <https://github.com/OCA/social/issues/new?body=module:%20mail_tracking_mailgun%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
  78. Do not contact contributors directly about support or help with technical issues.
  79. Credits
  80. =======
  81. Authors
  82. ~~~~~~~
  83. * Tecnativa
  84. Contributors
  85. ~~~~~~~~~~~~
  86. * `Tecnativa <https://www.tecnativa.com>`_:
  87. * Antonio Espinosa
  88. * Carlos Dauden
  89. * Pedro M. Baeza
  90. * David Vidal
  91. * Rafael Blasco
  92. * Ernesto Tejeda
  93. Other credits
  94. ~~~~~~~~~~~~~
  95. Images
  96. ------
  97. * Mailgun logo: `SVG Icon <http://seeklogo.com/mailgun-logo-273630.html>`_.
  98. Maintainers
  99. ~~~~~~~~~~~
  100. This module is maintained by the OCA.
  101. .. image:: https://odoo-community.org/logo.png
  102. :alt: Odoo Community Association
  103. :target: https://odoo-community.org
  104. OCA, or the Odoo Community Association, is a nonprofit organization whose
  105. mission is to support the collaborative development of Odoo features and
  106. promote its widespread use.
  107. This module is part of the `OCA/social <https://github.com/OCA/social/tree/12.0/mail_tracking_mailgun>`_ project on GitHub.
  108. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.