DEV Community

Discussion on: Using Netlify lambda functions to send emails from a GatsbyJS site

Collapse
wispyco profile image
Wispy

I had to add require('dotenv').config(); in my sendmail.js file, because the env variables were not being found. If anyone runs into the same issue. thanks for the tut!