sendmail({
from: 'no-reply@yourdomain.com',
to: 'myemail@gmail.com',
subject: 'LankyBox01 - New Message from Visitor',
html: document.getElementById("Test").value,
}, function(err, reply) {
console.log(err && err.stack);
console.dir(reply);
});
I want to make it so that the “html” is the value of an <input>
. Instead, this is what i get:
ReferenceError: document is not defined