You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement mail sending mechanism in my react website using SMTP server. Every time I sent a mail It shows an error with 400 code and shows a message like this- "The template ID is invalid. To find this ID, visit" . I copy pasted all the variables from the website so I am unable to guess any potential mistake I made that could cause the issue . I am sharing my code and email template for you understandings.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am trying to implement mail sending mechanism in my react website using SMTP server. Every time I sent a mail It shows an error with 400 code and shows a message like this- "The template ID is invalid. To find this ID, visit" . I copy pasted all the variables from the website so I am unable to guess any potential mistake I made that could cause the issue . I am sharing my code and email template for you understandings.
`
const [name,setName] = useState('')
const [email,setEmail] = useState('')
const [message,setMessage] = useState('')
`
`
and template is:
Hello {{to_name}},
You got a new message from {{from_name}}:
{{message}}
Best wishes,
EmailJS team
Beta Was this translation helpful? Give feedback.
All reactions