@nathanmartin Thanks for your reply, indeed there was problem in the directory (it was mistakenly not in the base), I just corrected it and the link works.
I have just one more question, I have built a react website with a form in the homepage so after user fill in the form and submit the email will be automatically sent with their information, but all the variables are declared in that part, so in this case I should I use @netlify/emails or fetch?
And how to reuse the variables in the html form?
Sorry if my questions are basic level, actually I just started learning coding last year (I’m a designer before and now start building frontend website), I built and deployed the frontend website in Netlify and I found it’s really great that we could integrate the email function with Postmark in the frontend, and I am excited to test it out.
Because the snippet generated in the preview contains an environment variable, NETLIFY_EMAILS_SECRET , we recommend pasting the code snippet into a Netlify Function to avoid sharing sensitive information in client-side code.
You probably don’t want to make the call directly from the frontend, but rather construct a function that you call from the frontend that in turn makes the actual call. The documentation provides an example function in that same section.
@Elina If you’re using Javascript, you can create your functions in Javascript, rather than Typescript. You can use the Typescript example as a reference for creating a Javascript function