Send an Attachment(PDF) using Send Email node

OK SO! It suddenly worked! i followed the code you’ve provided with sending multiple attachments! now the attachment is with the email!!! but! why is it that i needed to manually type “data” (propertyname) to the attachment field??? because when i try to go to “Add Expression” > “Current Node” > “Input Data” > “Binary” > “data” there are these “fileName”, “fileExtension”, “mimeType” in which when i try to click them it won’t show anything to the email i’ve sent, and that is why I’m surprised that it did send the attachment by me just trying to type “data” (propertyname from the http node)

my only problem now is, when i try to open the file from the email sent, it fails to load, saying that it is corrupted. you have any idea why? Is it because I did parse it wrongly?

Btw, I am accessing an Invoice file from woocommerce node. There is this key and value that I am using with the http node, and return the result as “file”