Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mail is no longer delivered #447

Open
tumise100 opened this issue Mar 15, 2023 · 7 comments
Open

Mail is no longer delivered #447

tumise100 opened this issue Mar 15, 2023 · 7 comments

Comments

@tumise100
Copy link

I have been using this for my personal website, and I noticed mail are been deliver to email when people use my contact form. It's not functioning at all

@nelsonic
Copy link
Member

Hi @tumise100, 👋
Are you able to send email from the email address manually? i.e. using the GMail web interface? ✉️

@tumise100
Copy link
Author

Yes, I'm able to send out mail from the account

@nelsonic
Copy link
Member

Hmm … strange. Google might be blocking the script. Are you able to email yourself using the script? 💭

@tumise100
Copy link
Author

How do I do that? emailing myself with the script

@nelsonic
Copy link
Member

@tumise100 is your script public?
It should already be configured to send the email to yourself:

var sendEmailTo = (typeof TO_ADDRESS !== "undefined") ? TO_ADDRESS : mailData.formGoogleSendEmail;

i.e. when the form is submitted, it should send an email to the TO_ADDRESS

@tumise100
Copy link
Author

Yeah... but not working, when the form is submitted, nothing happens, no mail sent, no mail receive

@cristianofromagio
Copy link
Contributor

I just setup a test following the tutorial and it worked fine. Have you checked if there is any failed executions for your AppScript? You can check it here (this is the script editor page, when you click the script from the list at https://script.google.com/home or through the Sheets file Extensions -> Apps Script menu):
image
You can refer to https://developers.google.com/apps-script/guides/support/troubleshooting?hl=en for troubleshooting any error.

But if it seems to be nothing wrong there (and you are sure you didn't consume all the free quota), you can try Redeploying your script as in Step 5 of the tutorial. Don't forget to also update your <form action=""> with the new Web app URL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants