Skip to content

Commit

Permalink
Updates bad example usage
Browse files Browse the repository at this point in the history
The original was missing the proper module and could lead to confusion.

I also decided to show the Bamboo Email being created.

Closes #2 

Amos King @adkron <amos@binarynoggin.com>
  • Loading branch information
adkron authored Mar 21, 2019
1 parent 450a7fe commit f697e94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/bamboo/config_adapter/email.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ defmodule Bamboo.ConfigAdapter.Email do
# Example Usage
import Bamboo.Email
def welcome do
email
|> Bamboo.ConfigAdapter.put_config(%{server: "smtp.other_domain)})
new_email()
|> Bamboo.ConfigAdapter.Email.put_config(%{server: "smtp.other_domain)})
|> Mailer.deliver_now()
end
"""
Expand Down

0 comments on commit f697e94

Please sign in to comment.