Skip to content

Commit 96799c7

Browse files
authored
Merge pull request #41 from midarrlabs/feature/39-add-email-provider-configuration
feat: add sendgrid mailer support
2 parents c3945d3 + 294d38a commit 96799c7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

config/runtime.exs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,14 @@ if config_env() == :prod do
4848
# Also, you may need to configure the Swoosh API client of your choice if you
4949
# are not using SMTP. Here is an example of the configuration:
5050
#
51-
# config :media_server, MediaServer.Mailer,
52-
# adapter: Swoosh.Adapters.Mailgun,
53-
# api_key: System.get_env("MAILGUN_API_KEY"),
54-
# domain: System.get_env("MAILGUN_DOMAIN")
51+
config :media_server, MediaServer.Mailer,
52+
adapter: Swoosh.Adapters.Sendgrid,
53+
api_key: System.get_env("SENDGRID_API_KEY")
5554
#
5655
# For this example you need include a HTTP client required by Swoosh API client.
5756
# Swoosh supports Hackney and Finch out of the box:
5857
#
59-
# config :swoosh, :api_client, Swoosh.ApiClient.Hackney
58+
config :swoosh, :api_client, Swoosh.ApiClient.Hackney
6059
#
6160
# See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
6261
end

0 commit comments

Comments
 (0)