Skip to content

Mailgun: send e-mail via API #935

Closed
Closed
@php-coder

Description

@php-coder

Switching to their API give us some benefits:

  • easier to test (when we have WireMock (Use WireMock for mocking external services #934), we'll be able to mock API)
  • easier to consume from different tests and different technologies/languages (at this moment, mail server is available only during execution of the one particular test also we can't use it from Robot Framework because in-memory mail server is available only inside JVM)

See https://documentation.mailgun.com/en/latest/user_manual.html#sending-via-api

Plan:

  • prepare curl command for sending e-mail
  • test curl command for sending e-mail
  • add a curl command to the class comment
  • rewrite the strategy to send via HTTP API
  • introduce mailgun.endpoint, and mailgun.password properties (in all files + ansible)
  • test that sending works
  • think about how to turn on a new strategy? OLD or NEW only vs NEW and OLD as a fallback
  • think about migration

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions