Stranger6667 / postmarker

Python client library for Postmark API
https://postmarker.readthedocs.io/en/stable/
MIT License
134 stars 29 forks source link

Allow EmailTemplate() to accept metadata parameters #184

Closed cmabastar closed 4 years ago

cmabastar commented 4 years ago

EmailTemplate() now accept Metadata parameters.

e.g.

postmark.emails.EmailTemplate(
    TemplateId=template_id,
    TemplateAlias=template_alias,
    From=f"{from_name} {from_}",
    To=user.email,
    Headers={"X-Accept-Language": "en-us, en"},
    TemplateModel=template_model,
    Metadata=metadata
)
codecov[bot] commented 4 years ago

Codecov Report

Merging #184 into master will not change coverage by %. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #184   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           22        22           
  Lines          893       893           
  Branches        75        75           
=========================================
  Hits           893       893           
Impacted Files Coverage Δ
postmarker/models/emails.py 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 167142b...509cceb. Read the comment docs.