auto send email with different attachments per recipients

Hi everyone,

I don’t know whether KNIME can setup a auto send email with different attachments for every recipients like:

  1. Recipients A: attachment A
  2. Recipients B: attachment B
    For sure that the content will be changed by recipients.

Appreciate every idea!!

Hello @huynhduc,

You can use the ‘Send Email’ node for this. You can do something like so in the workflow where you store the emails you want to send with their corresponding attachments location like:

Then once it is organized like so, you can run a variable loop start to pass each row as a variable so you can set them in the ‘Send Email’ node.

The workflow should generally look like this

Where we just loop over the table and fetch it row by row so we can pass it to the send email node so they get sent individually.

I would take a look at this thread on how to setup the SMTP section for sending the email out:

Hope this helps,
TL

4 Likes

Awesome @thor_landstrom,

But can we generate the email in the HTML type to preview it? Like, we export all the emails into a folder and it would be opened with Chrome HTML to view the content the will be sent?

Thank you for your help a lot.

I am not sure if you can directly export from the send email node as there is no output from it, but you can select whether or not you will use HTML or text to fill in the body.
Now, you will have to do this before the send email, where you have some column that has the html containing the text you want to send with the email. You can possibly use the reports and write it to HTML using ‘Report to HTML’ and preview the file that gets outputted so you can give it a look over.

The simplest way at least I can think of would be to just send yourself a variety of expected formats for the email with differing attachments and see if they look fine.

TL

1 Like

Got that, I will raise a detailed topic about this. Appreciate your help a lot.

1 Like

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