Send email with java script code

I have a javascript code that sends an email, I tested this code in visual studio code and in Alexa’s developer console, but I am not able to run it in Flowvoice, I add the javascript code and when I run it I get a path error.

how can i solve this?