Attachment for smtp

Hi,

I am also making the move from make.com to n8n, I stumble upon a question.

I want to send multiple smtp from airtable records and use the same attachment for every email.

I can’t get the attachment to work if it is outside the record loop.

I hope someone can help me figure this out, probably a beginners mistake.

Thanks in advance.

Greetings,
Robin

Hi

You can easily start you workflow by fetching your attachment from Airtable and then getting your users and assemble the mail.
I’d recommend to use a HTML-node for pre-assembling your mail-content that way you can also preview it right in your workflow.

Maybe this will help you, just replace my data-generator with your Airtable node and add your english template as well.

@nabossha Thanks for the HTML tip.

Unfortunately, there is no attachment.

If I place Get NL right before the SMTP Node node it works. I use data (no expression) in the attachment.

But then it is downloaded every time.

The name als is set to unknown. I used a code Node to add this manually, what is the best way to add the filename?

Priority is the attachment being added.

I think I made a mistake, now it works as expected, but you may need to adjust the file-fetching from your Airtable as I used an alternative web-URL for testing:

1 Like

It perfect now, thanks!!!

1 Like

Hey Rob, glad you’ve made it work :partying_face:
please don’t forget to mark the solution and have fun with n8n :slight_smile: