I am encountering an issue when using the Send Email node in KNIME:
When I select a local file as an attachment, the email sends successfully.
However, my attachment file is located on KNIME Hub, and the Send Email node cannot directly select it — the path is not recognized.
The node’s Flow Variables configuration attachedURLs only accepts string variables, not path variables (FSLocationVariableType).
I tried converting the Hub file path into a string variable Attachment_URL, but the Send Email node still interprets it as a local path on my C drive, and the email cannot be sent.
My question: Is it possible to use the Send Email node to send files stored on KNIME Hub as attachments directly?
I have attached my workflow and the error message for reference.
@DanielHua The issue you are encountering is a limitation of the Send Email node. This node is only able to attach files from the file system.
For more flexibility with file attachment I would recommend utilizing the Email Connector (Labs) and Email Sender (Labs) nodes from the KNIME Email Processing extension instead of the Send Email node. The Email Sender (Labs) node is able to attach files from the local file system, the Local or Hub space were the workflow is stored, an embedded file, or via URL. The node also allows for an optional input that can accept path data to define attachment locations dynamically.
Thank you very much for your clear explanation and helpful suggestion!
I’ll try using the Email Connector (Labs) and Email Sender (Labs) nodes from the KNIME Email Processing extension as you recommended.
It’s great to know that the Email Sender (Labs) node supports attachments from Hub spaces and URLs — that’s exactly what I needed.
I’ll test it out and share the results here once done. Thanks again for your support!