Git Product home page Git Product logo

Comments (4)

mckennapsean avatar mckennapsean commented on May 23, 2024 1

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.

mckennapsean avatar mckennapsean commented on May 23, 2024

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.

muigaiunaka avatar muigaiunaka commented on May 23, 2024

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.

mckennapsean avatar mckennapsean commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.