The component supports push messages and generates events based on inbound data. To generate inbound events, add a Route set to Store and Notify with a URL of the following form: https://<home-assistant-domain>/api/mailgun?api_password=<password>

To send messages, use the Mailgun notify platform.

Sample configuration

# Example configuration.yaml entry

Configuration variables:

  • domain (Required): This is the domain name to be used when sending out mail. Defaults to the first custom domain you have set up.
  • api_key (Required): This is the API token that has been generated in your Mailgun account.
  • sandbox (Deprecated): Whether to use the sandboxed domain for outgoing mail. Since the domain item is required, it should be set to the sandbox domain name, so this isn’t needed. Defaults to False.