Comments (4)
Okay. I think I figured it out. Follow Step 5, precisely. The Google Script's access must be set to "Anyone, even anonymous", or it will not work correctly!
The Javascript code is submitting data into your script (and the spreadsheet) anonymously (it is not coming from any Google sign-on account, hence "anonymous"). I got the error you posted when I did not do so. Hope that helps.
from learn-to-send-email-via-google-script-html-no-server.
My quick guess, you need a web server. Could be wrong. Try Firefox which doesn't require that for local files or do a simple web server with Python or node's http-server.
from learn-to-send-email-via-google-script-html-no-server.
I do not believe this to be the problem. This is the second HTML Form to Send an Email that I am creating and did not have this issue when I was building the form / testing it locally. The only difference that I can see is the url that comes from deploying as a web app now includes my email domain in it . Here: https://script.google.com/a/macros/resilientcoders.org/s/AKfycbxfNYfI9kMUqRK24hMbr4wY3XRYvZebH3_gK8Nna2gZH0K4ThBS/exec
whereas for the url for my google app for my first HTML form looked like this:
https://script.google.com/macros/s/AKfycbyAQkJ4lG2Ub7MQQjeJH4SqAqeryI7m-rsV0ObGKGrMcdDhB8wl/exec
from learn-to-send-email-via-google-script-html-no-server.
Hmmm, so the main difference is the website embedded in the URL. Do you have a Google for Work/School account through that domain? Or is it accidentally in there?
When you published the script, did you enable it world wide / public access? The URL in a browser is sending me to a Google Drive page, saying I do not have access. Whereas, your other working link (and my own links) bring me to a Google apps script page with an error (since nothing is passed to that script).
from learn-to-send-email-via-google-script-html-no-server.
Related Issues (20)
- Implementing g-recaptcha-response validation HOT 9
- Concatenating Name and String to make a custom subject for each email. HOT 12
- Help with customizing the email sent HOT 1
- Redirecting? HOT 4
- Can You please provide video.
- Adding new entries to the top of google sheet HOT 3
- send email via google script html
- ajax post works on pc but doesnt on mobile phones? HOT 1
- Checkbox input fields issue HOT 1
- Hide hidden input fields in email HOT 3
- update & fix readme links
- update links
- update researching recommendations on user privacy link HOT 1
- Thank You message doesn't disply HOT 1
- Receive Pictures and Documents HOT 4
- Mail is no longer delivered HOT 7
- {"result":"error","error":{"message":"\"TO_ADDRESS\" is not defined.","name":"ReferenceError","fileName":"script","lineNumber":56,"stack":"\tat script:56 (doPost)\n"}} HOT 2
- reload upon submission HOT 2
- It only works on PC, Windows, and Android. HOT 5
- QUESTION - Does This Work With React? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-to-send-email-via-google-script-html-no-server.