contact form email doesn't have the message from a textarea input
my contact form works, but the email i get doesn't have the message from the textarea included. what is the problem here?
html
js
i removed every unnecessary code from above
8 Replies
what email library/service are you using?
where is the emailSend() function coming from?
it is made with https://smtpjs.com/ and easy smtp access from elasticemail. the function is down below
SmtpJS.com - Send Email from JavaScript
Send email from client-side javascript - free js library
it is filled up with working data, so the contact form itself sends the email out, but doesn't have the message included. the input fields get the value. the textarea not, so i think its different for the textarea, but i don't know why
can you log the message from the textarea?
there's a semicolon after
email
I looked at this three times since you posted, and I just spotted itgood call, i was just making it in codepen
(I used the formData constructor to make it easier)
https://codepen.io/MarkBoots/pen/zYbzWYW
formData
is always an improvementYeah, that was it. Thanks x)