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 emails via an api instead of smtp #2139

Closed
3 of 8 tasks
ederuiter opened this issue Jan 12, 2022 · 1 comment
Closed
3 of 8 tasks

Send emails via an api instead of smtp #2139

ederuiter opened this issue Jan 12, 2022 · 1 comment
Labels
feat New feature or request.

Comments

@ederuiter
Copy link

Preflight checklist

Describe your problem

Currently all mails are sent out via courier and, as far as I could find, courier only supports smtp/smtps.
For normal email sending most mail providers like sendinblue/sendgrid still provide an smtp interface, however the preferred way is via their api.

Using their api would allow also us to use more advanced features like transaction email templates.

Our usecase would be sending all emails via sendinblue so we can use their transactional mail templates (which can be edited/maintained by non-developers)

Describe your ideal solution

It seems #1941 already lays the foundation, but only applies for sending sms.
This would need to be extended to also allow sending mails via an api.

  • add support for http/https protocol in courier.smtp.connection_uri
  • add courier.smtp.request_config (similar to courier.sms.request_config)

^ although it might better to rename courier.smtp to courier.mail or introduce a new courier.api option

Workarounds or alternatives

It might be possible to use webhooks for this, but that would require a whole lot of extra configuration per flow + would not be as robust.

Version

0.8

Additional Context

No response

@ederuiter ederuiter added the feat New feature or request. label Jan 12, 2022
@zepatrik
Copy link
Member

zepatrik commented Feb 3, 2022

I think this is a duplicate of #1030
Feel free to add to that issue

@zepatrik zepatrik closed this as completed Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request.
Projects
None yet
Development

No branches or pull requests

2 participants