// Auto-Confirmation Email to submitter
// THE SIMPLEST WAY
var theirFirst = e.values;
var theirEmail = e.values;
var theEvent = e.values;
var subject = "Form Submitted";
var message = "Thank you, " + theirFirst + " for the expressed interest in our " + theEvent;
MailApp.sendEmail (theirEmail, subject, message);
TypeError: No se puede leer la propiedad "values" de undefined. (línea 6, archivo "Código")
I think you meant to use
values, also you seem to be missing the
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.
See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (
</>) will also add backticks around text.
Note: Backticks are not single quotes.