{"action":"closed","issue":{"url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server/issues/28","repository_url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server","labels_url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server/issues/28/comments","events_url":"https://api.github.com/repos/dwyl/html-form-send-email-via-google-script-without-server/issues/28/events","html_url":"https://github.com/dwyl/html-form-send-email-via-google-script-without-server/issues/28","id":152343160,"number":28,"title":"Help with e var individual elements: Custom Email Message","user":{"login":"adell04","id":18728968,"avatar_url":"https://avatars.githubusercontent.com/u/18728968?v=3","gravatar_id":"","url":"https://api.github.com/users/adell04","html_url":"https://github.com/adell04","followers_url":"https://api.github.com/users/adell04/followers","following_url":"https://api.github.com/users/adell04/following{/other_user}","gists_url":"https://api.github.com/users/adell04/gists{/gist_id}","starred_url":"https://api.github.com/users/adell04/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adell04/subscriptions","organizations_url":"https://api.github.com/users/adell04/orgs","repos_url":"https://api.github.com/users/adell04/repos","events_url":"https://api.github.com/users/adell04/events{/privacy}","received_events_url":"https://api.github.com/users/adell04/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-01T18:47:33Z","updated_at":"2016-05-01T21:30:06Z","closed_at":"2016-05-01T21:30:06Z","body":"Hello,\r\nI am new to this, so any help/direction would be appreciated.  I have this script working with my website form.  I am now trying to edit the script to allow for the email that is sent to be a little more readable.  I am having issues pulling out the individual form elements.  Here is an example of my edited code, from the master code line #13:\r\n    MailApp.sendEmail({to: TO_ADDRESS, subject: \"New Message from CamillaFlynn.com\", htmlBody: \"Hello Friend,<br><br>You Have a new message from \" + e[\"name\"] + \". Here it is:<br>\" + e[\"message\"] +  \"<br><br>If you want to write back, here is their email address: \" + e[\"email\"]});\r\n\r\nWhen I submit a new form, the email sends and the Google spreadsheet is updated properly (as I did not change that part of the code).  However the email that is sent does not recognize my code e[\"message\"] etc.  For reference, my \"id\" and \"name\" elements in the form match what I am trying to call in the above code: \"name\", \"message\" and \"email\".  \r\n\r\nHere is an example of the email that I receive, as you can see, the form elements are noted as \"undefined\":\r\nHello Friend,\r\n\r\nYou Have a new message from undefined. Here it is:\r\nundefined\r\n\r\nIf you want to write back, here is their email address: undefined\r\n\r\n\r\nCan anyone give direction on how to properly pull out the form elements from the Form variable \"e\"?  I have also tried using the format: e[0], e[1], e[2], but that also returned \"undefined\""}}