Send Email / IMAP trigger node with credential variable

Hey guys,

I’m wondering if there’s a way to send email or trigger imap node using vairable from previous node to use as credential (SMTP/IMAP)

Currently, we need to always create a unique credential, that’s means we cannot provide custom credentials from another service/node.

If that’s not possible, do you know any node (community also) that can do that ?
I don’t want to go through a third party like mailjet

Thanks for your help!

Hi @Locos, trigger nodes (including the IMAP one) can’t use expressions I am afraid. This is because there is no previously node from which they could fetch data.

On the (regular) SMTP node you can, however, use expressions in your credentials that can read details from previous nodes:

So the SMTP part should work already, but for the IMAP part you’d need a regular IMAP node instead of the trigger. This is not something we currently offer, but perhaps you want to open a feature request?

1 Like

Hi @MutedJam,

I was sure about the IMAP trigger, it’s undersandable. It could be a great feature, but for few of us, I think.

For the SMTP, great to know we can use expression in credentials! Also work for password?

2 Likes

Yep, this also works for the password (just tested to be sure). I didn’t include that in the screenshot though because the expression preview would display that password :see_no_evil:

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.