Skip to content

Commit

Permalink
Merge pull request #1273 from code-corps/1272-add-postmark-template-ids
Browse files Browse the repository at this point in the history
Add Postmark template id for organization invite to the email
  • Loading branch information
joshsmith committed Dec 1, 2017
2 parents c65b5d1 + 5bc28b2 commit 21e9f53
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/remote-development.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ config :code_corps, CodeCorps.Mailer,

config :code_corps,
postmark_forgot_password_template: "123",
postmark_organization_invite_email_template: "123",
postmark_project_acceptance_template: "123",
postmark_project_request_template: "123",
postmark_receipt_template: "123"
Expand Down
1 change: 1 addition & 0 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ config :code_corps, CodeCorps.Mailer,

config :code_corps,
postmark_forgot_password_template: "123",
postmark_organization_invite_email_template: "123",
postmark_project_acceptance_template: "123",
postmark_project_request_template: "123",
postmark_receipt_template: "123"
Expand Down
2 changes: 1 addition & 1 deletion lib/code_corps/emails/organization_invite_email.ex
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ defmodule CodeCorps.Emails.OrganizationInviteEmail do
end

@spec template_id :: String.t
defp template_id, do: Application.get_env(:code_corps, :organization_invite_email_template)
defp template_id, do: Application.get_env(:code_corps, :postmark_organization_invite_email_template)
end

0 comments on commit 21e9f53

Please sign in to comment.