Skip to content

Commit

Permalink
Document how to change base_url for CustomerIO adapter (#987)
Browse files Browse the repository at this point in the history
* Document how to change base_url for CustomerIO adapter

* Update customer_io.ex

---------

Co-authored-by: Po Chen <[email protected]>
  • Loading branch information
sheharyarn and princemaple authored Dec 30, 2024
1 parent d33e37a commit 3e93ae6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/swoosh/adapters/customer_io.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ defmodule Swoosh.Adapters.CustomerIO do
use Swoosh.Mailer, otp_app: :sample
end
You can also change the API host, which defaults to `https://api.customer.io/v1`. For example, if
your Customer.io account is configured to use their EU datacenter:
# config/config.exs
config :sample, Sample.Mailer,
base_url: "https://api-eu.customer.io/v1"
This can also be provided to `deliver/2` on a case-by-case basis.
## Using with provider options
import Swoosh.Email
Expand Down

0 comments on commit 3e93ae6

Please sign in to comment.