Home

Awesome

ravenx_email

Current Version Build Status

Ravenx strategy to send e-mail notifications

Installation

The package can be installed as simply as adding ravenx and ravenx_email to your list of dependencies in mix.exs:

  def deps do
    [
      {:ravenx, "~> 2.0"},
      {:ravenx_email, "~> 0.1"}
    ]
  end

Configuration

To enable this strategy, just specify it in your ravenx configuration:

config :ravenx,
  strategies: [
    email: Ravenx.Strategy.Email
  ]

Available configuration

The strategy can be configured as mentioned on the Ravenx's README, been able to configure the following variables:

Adapters

By default the strategy comes with this adapters:

These adapter can accept configuration, which have to be added to the strategy configuration or the options passed when calling Ravenx.

To see the list of configuration options available, please refer to Bamboo documentation on each adapter.

Additional adapters can be added (always following the Bmaboo conventions) by adding them to the configuration like:

config :ravenx,
  bamboo_adapters: [
    my_adapter: MyApp.Email.Adapter
  ]

Payload

The full list of available fields are:

Preference of configuration

As you may notice, there are configuration that can be on the payload, on the configuration passed or in the configuration of the strategy.

Well, the configuration passed in the options when calling Ravenx will override the default configuration of the strategy. But if you pass configuration on the payload, it will override any other configuration previously set.

Contribute

All contributions are welcome, and we really hope this repo will serve for beginners as well for more advanced developers.

If you have any doubt, feel free to ask, but always respecting our Code of Conduct.

To contribute, create a fork of the repository, make your changes and create a PR. And remember, talking on PRs/issues is a must!