Sendgrid automated email code isn't working. Can someone please tell me why?

Hey guys,
So I am building a website using wix dev mode and I have some code that is supposed to send an email whenever someone submits a certain form. I have taken a screen recording of my problem and will share it here. —> https: // www . screencast . com / t / QBOJnYD0q3Gn
Also, it says I cant do links so you have to delete all the unnecessary spaces. Please reach out to me and tell me what I did wrong. I hope that I will get an answer from one of you guys.