I am trying to use the variable in my env file but it's not working. but when I use the variable manually using the ENV file it will be working. what could be the issue
Here's my code
function handleSubmit (e) {
e.preventDefault()
emailjs.sendForm(process.env.REACT_APP_EMAILJS_SERVICE_ID,process.env.REACT_APP_EMAILJS_TEMPLATE_ID, form.current,process.env.REACT_APP_EMAILJS_PUBLIC_KEY)
.then(function(response) {
return setMessage(response.status)
}, function(err) {
console.log('FAILED...', err);
});
}
Here's my ENV file
REACT_APP_EMAILJS_SERVICE_ID='service_id'
REACT_APP_EMAILJS_TEMPLATE_ID='template_id'
REACT_APP_EMAILJS_PUBLIC_KEY="public_key"