-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add put params like on mandrill adapter #9
Conversation
Ebert has finished reviewing this Pull Request and has found:
You can see more details about this review at https://ebertapp.io/github/pablo-co/bamboo_postmark/pulls/9. |
|> PostmarkHelper.put_param("TrackOpens", true) | ||
|> PostmarkHelper.put_param("TrackLinks", "HtmlOnly") | ||
|
||
email |> PostmarkAdapter.deliver(@config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a function call when a pipeline is only one function long
@@ -158,11 +158,22 @@ defmodule Bamboo.PostmarkAdapterTest do | |||
end | |||
|
|||
test "deliver/2 puts tag param" do | |||
email = new_email() |> PostmarkHelper.tag("some_tag") | |||
email = new_email() |> PostmarkHelper.tag("some_tag") | |||
email |> PostmarkAdapter.deliver(@config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a function call when a pipeline is only one function long
@@ -158,11 +158,22 @@ defmodule Bamboo.PostmarkAdapterTest do | |||
end | |||
|
|||
test "deliver/2 puts tag param" do | |||
email = new_email() |> PostmarkHelper.tag("some_tag") | |||
email = new_email() |> PostmarkHelper.tag("some_tag") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a function call when a pipeline is only one function long
@@ -116,8 +116,16 @@ defmodule Bamboo.PostmarkAdapter do | |||
"Headers": email_headers(email), | |||
"TrackOpens": true | |||
} | |||
|> add_message_params(email) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use a function call when a pipeline is only one function long
@whodidthis thanks, this looks great! I'll merge it in. |
For tracking and maybe other stuff on Postmark.