@@ -106,34 +106,11 @@ if config_env() == :prod do
106
106
#
107
107
# Check `Plug.SSL` for all available options in `force_ssl`.
108
108
109
- # TODO: Switch Postmark to this when we get our first paid customer
110
109
if config_env ( ) == :prod or config_env ( ) == :dev do
111
110
## Configuring the mailer
112
- #
113
- # See https://hexdocs.pm/swoosh/Swoosh.html#module-installation for details.
114
- # In production you need to configure the mailer to use a different adapter.
115
- # Also, you may need to configure the Swoosh API client of your choice if you
116
- # are not using SMTP. Here is an example of the configuration:
117
- #
118
- # config :sentrypeer, Sentrypeer.Mailer,
119
- # adapter: Swoosh.Adapters.Postmark,
120
- # api_key: System.get_env("POSTMARK_API_KEY")
121
- #
122
- #
123
- # For this example you need include a HTTP client required by Swoosh API client.
124
- # Swoosh supports Hackney and Finch out of the box:
125
- #
126
- # config :swoosh, :api_client, Swoosh.ApiClient.Finch
127
111
config :sentrypeer , Sentrypeer.Mailer ,
128
- adapter: Swoosh.Adapters.SMTP ,
129
- relay: System . get_env ( "SENTRYPEER_SMTP_RELAY" ) ,
130
- username: System . get_env ( "SENTRYPEER_SMTP_USERNAME" ) ,
131
- password: System . get_env ( "SENTRYPEER_SMTP_PASSWORD" ) ,
132
- tls: :always ,
133
- auth: :always ,
134
- port: System . get_env ( "SENTRYPEER_SMTP_PORT" ) ,
135
- retries: 2 ,
136
- no_mx_lookups: false
112
+ adapter: Swoosh.Adapters.Sendgrid ,
113
+ api_key: System . get_env ( "SENTRYPEER_SENDGRID_API_KEY" )
137
114
end
138
115
139
116
# Stripe
0 commit comments