-
Unfortunately I don't see anything within their doc's/support that guides you on what to do when you receive an email from EmailJS alerting you with all the fields blank. I see that each email has gone through ok and is being deducted from the allotted emails on my EmailJS dashboard, but it isn't actually sending over any of the users information. `import { useState } from "react"; function SuccessModal({ open, onClose }) { Thank you for submitting your message. We will get back to you soon! Close ); } function ContactForm() { const templateParams = { const form = useRef(); const sendEmail = (e) => {
}; return ( <TextField fullWidth label="Name" value={name} onChange={(e) => setName(e.target.value)} margin="normal" required /> <TextField fullWidth label="Email" value={email} onChange={(e) => setEmail(e.target.value)} margin="normal" required type="email" /> <TextField fullWidth label="Message" value={message} onChange={(e) => setMessage(e.target.value)} margin="normal" required multiline rows={4} /> <Button variant="contained" type="submit" sx={{ mt: 2 }}> Submit
); export default ContactForm;` Here are my EmailJS template params: Message Senders full name: {{from_name}} Message Senders email: {{from_email}} Message: {{message}} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Please edit your code, to make it easier to read. |
Beta Was this translation helpful? Give feedback.
You need to specify a
name
attribute for your input fields.