Skip to content
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

Merged
merged 1 commit into from
Mar 7, 2017
Merged

Add put params like on mandrill adapter #9

merged 1 commit into from
Mar 7, 2017

Conversation

whodidthis
Copy link
Contributor

For tracking and maybe other stuff on Postmark.

@pablo-co
Copy link
Owner

pablo-co commented Mar 6, 2017

Ebert has finished reviewing this Pull Request and has found:

  • 1 possible new issue (including those that may have been commented here).

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)
Copy link
Owner

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)
Copy link
Owner

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")
Copy link
Owner

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)
Copy link
Owner

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

@pablo-co
Copy link
Owner

pablo-co commented Mar 7, 2017

@whodidthis thanks, this looks great! I'll merge it in.

@pablo-co pablo-co merged commit 9d5f63d into pablo-co:master Mar 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants