the public key on my email-js i am directly using.
Closed this issue · 2 comments
raheelhp commented
the public key on my email-js i am directly using.
i have imported import emailjs from "emailjs-com";
emailjs
.sendForm('service_id', 'template_id', formRef.current, {
publicKey: 'gNFQa4SZihiiwRucp',
})
.then(
() => {
console.log('SUCCESS!');
},
(error) => {
console.log('FAILED...', error.text);
},
);
}; see I am directly putting public key here. but when I click on my submit button in the console it shows invalid public key instead it is being the same on email-js dashboard.
Originally posted by @raheelhp in #109 (reply in thread)
xr0master commented
no issue
raheelhp commented
then why is my console.log throwing error?