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.

113 lines
3.6 KiB

  1. .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
  2. :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
  3. :alt: License: AGPL-3
  4. =========================
  5. Mail tracking for Mailgun
  6. =========================
  7. This module integrates mail_tracking events with Mailgun webhooks.
  8. Mailgun (https://www.mailgun.com/) is a service that provides an e-mail
  9. sending infrastructure through an SMTP server or via API. You can also
  10. query that API for seeing statistics of your sent e-mails, or provide
  11. hooks that processes the status changes in real time, which is the
  12. function used here.
  13. Configuration
  14. =============
  15. You must configure Mailgun webhooks in order to receive mail events:
  16. 1. Got a Mailgun account and validate your sending domain.
  17. 2. Go to Webhook tab and configure the below URL for each event:
  18. .. code:: html
  19. https://<your_domain>/mail/tracking/all/<your_database>
  20. Replace '<your_domain>' with your Odoo install domain name
  21. and '<your_database>' with your database name.
  22. In order to validate Mailgun webhooks you have to configure the following system
  23. parameters:
  24. - `mailgun.apikey`: You can find Mailgun api_key in your validated sending
  25. domain.
  26. - `mailgun.api_url`: It should be fine as it is, but it could change in the
  27. future.
  28. - `mailgun.validation_key`: If you want to be able to check mail address
  29. validity you must config this parameter with your account Public Validation
  30. Key.
  31. You can also config partner email autocheck with this system parameter:
  32. - `mailgun.auto_check_partner_email`: Set it to True.
  33. Usage
  34. =====
  35. In your mail tracking status screens (explained on module *mail_tracking*), you
  36. will see a more accurate information, like the 'Received' or 'Bounced' status,
  37. which are not usually detected by normal SMTP servers.
  38. It's also possible to make some checks to the partner's email addresses against
  39. the Mailgun API:
  40. - Check if the partner's email is in Mailgun's bounced list.
  41. - Check the validity of the partner's mailbox.
  42. - Force the partner's email into Mailgun's bounced list or delete from it.
  43. It's also possible to manually check a message mailgun tracking when the webhook
  44. couldn't be captured. For that, go to that message tracking form, press the
  45. button *Check Mailgun*. It's important to note that tracking events have quite a
  46. short lifespan, so after 24h they won't be recoverable.
  47. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  48. :alt: Try me on Runbot
  49. :target: https://runbot.odoo-community.org/runbot/205/11.0
  50. Known issues / Roadmap
  51. ======================
  52. * There's no support for more than one Mailgun mail server.
  53. Bug Tracker
  54. ===========
  55. Bugs are tracked on `GitHub Issues
  56. <https://github.com/OCA/social/issues>`_. In case of trouble, please
  57. check there if your issue has already been reported. If you spotted it first,
  58. help us smashing it by providing a detailed and welcomed feedback.
  59. Credits
  60. =======
  61. Images
  62. ------
  63. * Mailgun logo: `SVG Icon <http://seeklogo.com/mailgun-logo-273630.html>`_.
  64. Contributors
  65. ------------
  66. * Antonio Espinosa <antonio.espinosa@tecnativa.com>
  67. * Carlos Dauden <carlos.dauden@tecnativa.com>
  68. * Pedro M. Baeza <pedro.baeza@tecnativa.com>
  69. * David Vidal <david.vidal@tecnativa.com>
  70. * Rafael Blasco <rafael.blasco@tecnativa.com>
  71. Maintainer
  72. ----------
  73. .. image:: https://odoo-community.org/logo.png
  74. :alt: Odoo Community Association
  75. :target: https://odoo-community.org
  76. This module is maintained by the OCA.
  77. OCA, or the Odoo Community Association, is a nonprofit organization whose
  78. mission is to support the collaborative development of Odoo features and
  79. promote its widespread use.
  80. To contribute to this module, please visit https://odoo-community.org.