Attachment not receiving in mail using Netlify email function with Sendgrid

Hi everyone,

Currently I’m struggling to get my contactform working to receive the attachment that should be uploaded. Now I do receive the message with all the information I filled in the form, except the attachment.

I’m using this → Netlify Email Integration | Netlify Docs with SendGrid
I will add some screenshots of my code, I hope someone sees what’s wrong.
The site name is: lanurse.netlify.app

Scherm­afbeelding 2023-01-11 om 20.06.56

Something I think is strange is the following →


As you can see, the file input is a string. It’s the first time working with these email functions so I’m not sure if this is supposed to be like this…

If any more context is needed, please let me know!

Kind regards,

Jarno

Hi @Jarno123 :wave:t6: ,

Welcome to the forums thanks for reaching out! :netliconfetti: :smiling_face_with_three_hearts:

This is likely an issue with your code and not Netlify. Unfortunately debugging code is outside of the scope of support. I recommend you give this support guide a read and debug first.

Can you provide your site name and/or link? Hopefully others in the community can chime in a have a look. (:

Hi Jarno,

Thanks for posting! Could you confirm what version of the emails plugin you are using? Attachments are only supported from version 1.0.0 onwards so I just want to check that this is the version you are seeing on builds.