Skip to content

Commit

Permalink
Fix 500 error with Postmark and email encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsmith committed May 31, 2017
1 parent eadef90 commit efa3c24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/staging.exs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ config :code_corps, CodeCorps.Mailer,
api_key: System.get_env("POSTMARK_API_KEY")

config :code_corps,
postmark_forgot_password_template: "1989481",
postmark_forgot_password_template: "1989481",
postmark_project_acceptance_template: "1447022",
postmark_receipt_template: "1252361"

Expand Down
2 changes: 1 addition & 1 deletion lib/code_corps/emails/forgot_password_email.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule CodeCorps.Emails.ForgotPasswordEmail do
def create(user, token) do
BaseEmail.create
|> to(user.email)
|> template(template_id(), [link: link(token)])
|> template(template_id(), %{link: link(token)})
end

defp template_id, do: Application.get_env(:code_corps, :postmark_forgot_password_template)
Expand Down

0 comments on commit efa3c24

Please sign in to comment.