Easy Way to add Attachments to SMTP Query

  • Goal: Dear community. I am looking for an easy way to feed a pdf in base 64 into the attachment of an. email component.

  • Steps: I have fitted it in like I feed it in the pdf Preview window but it doesn't work. It works perfectly in the pdf preview, but it doesn't work in the mail attachment.

Another alternative would be to store the file into a file button, but also this is not working. How does. it work?

So I got it to work by

  1. uploading the pdf to storage
  2. getting the file from storage
  3. feeding the file programmatically by giving [{{ get_lable_file.data }}] to the attachement

Am I too complicated ?

1 Like

Does your original attempt work if you move the {{ }} outside of the array brackets {{ [ ...your stuff...] }}?

Hi, no this does not even run, the preset is to have [ outside of {{

however what is strange that the block runs like this even though it indicates an error by showing red {{ . . . }}

@Tess little glitch, how should one report such minor things ?

image

1 Like

Hi @mascaritas,

Glad you were able to get it sorted by using Storage to hold the image and then pass it to the attachment!

I can file a bug report for the incorrect red on that. Seems like an easy fix for our IDE team.

1 Like