Set the ID of which SMTP credentials to use in a Send Email node.
Add an expression to determine which ID it’s gonna be.
A customer gives me smtp credentials. I create a new credential in N8N, save the credential’s ID. When I trigger a workflow for that customer, I want to choose his smtp credentials programmatically.
I can create more general workflows, reusing them for different clients.
This way I have one workflow and can easily add new customers with minimal change to the workflow necessary.
It should be quite easy to implement I believe, as we already have credential’s ids and can choose credentials in the Send Email node. The dropdown would only need to have expression support, accepting a valid credential ID filtering all the saved SMTP credentials.
If this is already possible, I couldn’t find it in the docs or community.
Any workaround ideas welcome!
(Would be great not to have to store in plain text or env files)