-
Notifications
You must be signed in to change notification settings - Fork 132
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
Feature request: Mailtrap #345
Comments
Mailtrap looks like a good fit for Anymail: it has a transactional sending API and a free plan that would cover Anymail's weekly integration testing. Others who are interested, please express support by adding a thumbs up reaction to the first comment in this issue. Note that you should already be able to send messages with Mailtrap from your Django app: just configure Django's SMTP EmailBackend to use Mailtrap's SMTP service. PR welcome. (Or I'll get to this at some point, but it's not likely to be in the next few months.) For mapping Mailtrap to Anymail features: it looks like Mailtrap provides status tracking webhooks, metadata ("custom variables"), a single tag ("category"), and ESP-stored templates ( Mailtrap doesn't currently seem to offer inbound email support, deferred sending, or the ability to control open and click tracking on individual messages. |
Hi @medmunds |
Hey @rez0n, if I'm understanding correctly, Mailtrap's email testing feature provides a fake SMTP server that captures sent emails. So you'd just supply those SMTP credentials to Django's built-in SMTP EmailBackend (links in the earlier comment)—there's not really a need for an Anymail backend for that. It looks like Mailtrap has recently introduced an "early access" HTTP API for sending to test mailboxes, and that could be supported by an Anymail backend. Their docs note it's likely to change, but currently the test API matches Mailtrap's regular email send API payload, except it doesn't support templates. It should be relatively easy to add support for this in Anymail at the same time as regular sending. [If anyone from Mailtrap sees this comment, it would be even easier if the test inbox id could be an API payload field, rather than part of the API endpoint url.] |
Hi @medmunds
This is literally what I do.
Sounds very good because in current setup I have different logic of emailing backend on dev(mailtrap via SMTP) and prod (SES via anymail) which is not cool in my opinion. Thank you for this awesome project, looking forward. |
I would also love to see Mailtrap support, so I have started an attempt in #406 |
Hello. Do you plan to add Mailtrap as a supported ESP?
https://mailtrap.io/
The text was updated successfully, but these errors were encountered: