Hello! Our platform’s emails are being sent throug...
# talk-kratos
w
Hello! Our platform’s emails are being sent through Postmark, including template management. Is it possible to somehow integrate Postmark with Ory? Perhaps make Ory send an API request to Postmark instead of using its own email client? This would so helpful!
m
w
I think I saw the hooks thing… It is unclear to me if I can use an
after registration
hook to replace the verification email with my own implementation?
m
Yes you should be able disable the normal verification email and send one through the hook. Adding SMTP is not an option?
w
I don’t think it would help a lot, since our layouts/templates are managed in Postmark, SMTP doesn’t help with alleviating handling templates in two locations
m
Sorry for the basic question, but I thought you can use Postmark as SMTP https://postmarkapp.com/developer/user-guide/send-email-with-smtp
w
You can, I might be misunderstanding what that means though. Does this mean sending am Ory email via Postmark's address? As in, the email content is still Ory, no? Postmark has a template manager and a dedicated API allowing one to send emails by selecting a template and providing data. I don't think that's something that is doable with SMTP, is it?