Skip to content

Commit

Permalink
Clarified mail api key config
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderxyz committed Feb 10, 2018
1 parent 5532de2 commit e854050
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ mix veil.add
```elixir
config :veil, YourAppWeb.Veil.Mailer,
adapter: Swoosh.Adapters.Sendgrid,
api_key: "SG.your-api-key"
api_key: "your-api-key"
```

5. Launch your server and open http://localhost:4000/ in your browser.
Expand Down Expand Up @@ -63,7 +63,7 @@ config :veil, YourApp.Veil.Scheduler,

config :veil, YourAppWeb.Veil.Mailer,
adapter: Swoosh.Adapters.Sendgrid,
api_key: "SG.your-api-key"
api_key: "your-api-key"
```

You should move the third part of this to a file that is not under version control, or save your API key as an environment variable instead.
Expand Down
2 changes: 1 addition & 1 deletion lib/mix/tasks/veil/add.ex
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ defmodule Mix.Tasks.Veil.Add do
config :veil, #{web_module}.Veil.Mailer,
adapter: Swoosh.Adapters.Sendgrid,
api_key: "SG.your-api-key"
api_key: "your-api-key"
""")

config
Expand Down
2 changes: 1 addition & 1 deletion priv/templates/config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ config :veil,Veil.Scheduler,

config :veil, <%= web_module %>.Veil.Mailer,
adapter: Swoosh.Adapters.Sendgrid,
api_key: "SG.your-api-key"
api_key: "your-api-key"

# -- End Veil Configuration

0 comments on commit e854050

Please sign in to comment.