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

send_with_template won't allow alias #179

Closed
2x2xplz opened this issue Jul 15, 2019 · 4 comments · Fixed by #191
Closed

send_with_template won't allow alias #179

2x2xplz opened this issue Jul 15, 2019 · 4 comments · Fixed by #191

Comments

@2x2xplz
Copy link

2x2xplz commented Jul 15, 2019

Referring to #150

When I try to send an email using a template alias,
postmark.emails.send_with_template(TemplateAlias=alias, TemplateModel=model, To=sendto, From=efrom)

I get the following response:
TypeError: send_with_template() missing 1 required positional argument: 'TemplateId'

Thanks.

@viperfx
Copy link

viperfx commented Aug 11, 2019

@Stranger6667 I am facing this issue too.

From the Postmark API specs - https://postmarkapp.com/developer/api/templates-api#email-with-template

TemplateAlias - The alias of a template to use when sending this message. Required if TemplateID is not specified.
TemplateId - The template to use when sending this message. Required if TemplateAlias is not specified.

So TemplateID should not be required, if TemplateAlias is specified

@MrLightful
Copy link

@Stranger6667 any updates on this one?

@Stranger6667
Copy link
Owner

Hi @romatallinn

Sorry, I completely missed this issue; I will put it on my TODO list for the next week. Thank you for pinging me

@Stranger6667
Copy link
Owner

The fix is released in 0.17.0 (it also drops support for Python 3.5).

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 a pull request may close this issue.

4 participants