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.

112 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 will
  36. see a more accurate information, like the 'Received' or 'Bounced' status, which are
  37. not usually detected by normal SMTP servers.
  38. It's also possible to make some checks to the partner's email addresses against the Mailgun API:
  39. - Check if the partner's email is in Mailgun's bounced list.
  40. - Check the validity of the partner's mailbox.
  41. - Force the partner's email into Mailgun's bounced list or delete from it.
  42. It's also possible to manually check a message mailgun tracking when the webhook
  43. couldn't be captured. For that, go to that message tracking form, press the
  44. button *Check Mailgun*. It's important to note that tracking events have quite a
  45. short lifespan, so after 24h they won't be recoverable.
  46. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  47. :alt: Try me on Runbot
  48. :target: https://runbot.odoo-community.org/runbot/205/9.0
  49. Known issues / Roadmap
  50. ======================
  51. * There's no support for more than one Mailgun mail server.
  52. Bug Tracker
  53. ===========
  54. Bugs are tracked on `GitHub Issues
  55. <https://github.com/OCA/social/issues>`_. In case of trouble, please
  56. check there if your issue has already been reported. If you spotted it first,
  57. help us smashing it by providing a detailed and welcomed feedback.
  58. Credits
  59. =======
  60. Images
  61. ------
  62. * Mailgun logo: `SVG Icon <http://seeklogo.com/mailgun-logo-273630.html>`_.
  63. Contributors
  64. ------------
  65. * Antonio Espinosa <antonio.espinosa@tecnativa.com>
  66. * Carlos Dauden <carlos.dauden@tecnativa.com>
  67. * Pedro M. Baeza <pedro.baeza@tecnativa.com>
  68. * David Vidal <david.vidal@tecnativa.com>
  69. * Rafael Blasco <rafael.blasco@tecnativa.com>
  70. Maintainer
  71. ----------
  72. .. image:: https://odoo-community.org/logo.png
  73. :alt: Odoo Community Association
  74. :target: https://odoo-community.org
  75. This module is maintained by the OCA.
  76. OCA, or the Odoo Community Association, is a nonprofit organization whose
  77. mission is to support the collaborative development of Odoo features and
  78. promote its widespread use.
  79. To contribute to this module, please visit https://odoo-community.org.