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

Adding the possibility to send an email with a template stored in mailgun #42

Merged
merged 5 commits into from
Mar 31, 2021
Merged

Conversation

JannikZed
Copy link
Contributor

Mailgun lets you predefine templates via the templates API. This pull request lets you send out these templates.

https://documentation.mailgun.com/en/latest/user_manual.html#templates

When using a stored "template", the message body html should be removed.
Copy link
Member

@DrewImm DrewImm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the pull request. Please adjust the formatting before I merge.

README.md Outdated Show resolved Hide resolved
src/ts-mailgun.ts Outdated Show resolved Hide resolved
`sendOptions.template === 'TEMPLATENAME'`

```typescript
sendOptions.template === 'TEMPLATENAME'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be === or =?

@DrewImm DrewImm changed the base branch from master to v0.5.0 March 31, 2021 21:49
@DrewImm DrewImm merged commit f76bcb8 into StatelessStudio:v0.5.0 Mar 31, 2021
@DrewImm
Copy link
Member

DrewImm commented Mar 31, 2021

Thank you for the work @JannikZed!

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.

None yet

2 participants