There was an error while loading. Please reload this page.
I'm using the @emailjs/browse (3.7.0) with react (17.0.2) + typescript (4.6.2).
@emailjs/browse
react
typescript
After I sent an email I'm receiving this error message:
The weird part is: the email is being sent! But my function is not returning either the response or error.
response
error
const msg = { firstName: values.firstName, email: values.email, message: values.text, subject: values.subject, };
export const SendEmail = (msg) => { emailjs .send( process.env.REACT_APP_SERVICE_ID, process.env.REACT_APP_TEMPLATE_ID, msg, process.env.REACT_APP_PUBLIC_KEY ) .then( (response) => { console.log(response); return response; }, (error) => { console.log(error); return error; } ); };