alexgaribay / sendgrid_elixir

Create and send composable emails with Elixir and SendGrid.
MIT License
86 stars 44 forks source link

Add configurable adapter for tesla #34

Open luisfmcalado opened 5 years ago

luisfmcalado commented 5 years ago

In some cases you might need to change the tesla adapter options, for example, you might need to have a proxy configured to use the SendGrid web API.

config :sendgrid,
  adapter: {Tesla.Adapter.Hackney, [proxy: "http://192.168.1.1:8888"]}

Here we add a configurable adapter for Tesla injected through the Tesla.client/2. If the adapter isn't configured the default is used.