using someone else's google account for sending emails #284

Closed
opened 2025-10-14 16:45:45 -06:00 by navan · 0 comments
Owner

Originally created by @mckennapsean on 11/3/2017

a side effect of allowing the "to" email address to be set in the HTML is that people can copy and paste our examples, adapt them, and use it to send an email without ever configuring their own server. I was thinking from an attacker perspective, but this is a very, very feasible "lazy" perspective, especially since it works right away, requires fewer steps, and seems to pass your data correctly.

why shouldn't someone we just let people do this then? well, it is using one of our accounts, which has API limits, and could eventually break if people are using it frequently enough. also, all your data is getting sent to one of our accounts & a public spreadsheet, which likely won't make some people happy to know that their data from your form is public. generally, we don't want that.

I could disable emailing from the demo examples, since that isn't really required for them to do apart for testing purposes. it'd be better to have unit tests mocked out anyways (if possible), but not sure how feasible that is. we could revert functionality in the demo only, but have the copy spreadsheet be maintained separately but kept active (so people copying get the right code).

is there any preference on the appropriate method?

*Originally created by @mckennapsean on 11/3/2017* a side effect of allowing the "to" email address to be set in the HTML is that people can copy and paste our examples, adapt them, and use it to send an email without ever configuring their own server. I was thinking from an attacker perspective, but this is a very, very feasible "lazy" perspective, especially since it works right away, requires fewer steps, and seems to pass your data correctly. why shouldn't someone we just let people do this then? well, it is using one of our accounts, which has API limits, and could eventually break if people are using it frequently enough. also, all your data is getting sent to one of our accounts & a public spreadsheet, which likely won't make some people happy to know that their data from your form is public. generally, we don't want that. I could disable emailing from the demo examples, since that isn't really required for them to do apart for testing purposes. it'd be better to have unit tests mocked out anyways (if possible), but not sure how feasible that is. we could revert functionality in the demo only, but have the copy spreadsheet be maintained separately but kept active (so people copying get the right code). is there any preference on the appropriate method?
Sign in to join this conversation.
No labels
Priority-1
Priority-1
Priority-1
Priority-1
Priority-1
Priority-1
Priority-1
Priority-1
awaiting-review
awaiting-review
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
chore
chore
discuss
discuss
discuss
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
epic
epic
external-dependency
external-dependency
external-dependency
hacktoberfest-accepted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
in-progress
in-progress
in-progress
in-review
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
merge-conflicts
merge-conflicts
please-test
please-test
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
spam
spam
starter
starter
starter
starter
starter
starter
starter
starter
starter
technical
technical
technical
technical
technical
user-feedback
user-feedback
user-feedback
user-feedback
user-feedback
user-feedback
wontfix
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/learn-to-send-email-via-google-script-html-no-server#284
No description provided.