Learn-to-send-email-via-google-script-html-no-server: Send a Thankyou Email to the Person that Submitted the Contact Form?

Created on 18 Oct 2015  路  14Comments  路  Source: dwyl/learn-to-send-email-via-google-script-html-no-server

Should we thank people for submitting the contact form and establish a contact point immediately?

enhancement help wanted question

All 14 comments

Feedback of _some_ sort is required of course, but I would be in favour of making the immediate email _optional_. If there's no imperative to establish contact straight away (e.g. needing to confirm the email), then depending on the purpose it may be more advantageous to follow up 2 or 3 days later to keep yourself in the person's mind.

The only _downside_ of this is that it can be used to _spam_ people...

In the context of a contact form, I would find an email confirmation to be annoying in most casual cases. I could see a use for it, but I think it would complicate the tutorial as-is.

It would be nice to have an option for those anxious people who want their own immediate "proof" of submission. Possibly with an option to never email to someone who has already been contacted before, to help prevent spam. An optional feature can always be switched off quickly if it is abused.

True, perhaps the case of spam is something for others to worry about if it happens. It may be a useful feature to showcase. It would be tied to the issue of building a nicer HTML formatted email. #7

I think it's a nice feature ! Receiving an email after submitting a form can be pretty useful in some cases, especially if the form is used as an event subscription, it's always cool to receive a reminder.

I found a pretty nice piece of code and tutorial to do that, but there is a conflict with this script that I can't seem to fix.

Anyway, cool feature, let's write a few more lines in the script and in the tutorial ? Thanks for the great work !

Does that tutorial/code work on its own? I just noticed the link was a bit older, and sometimes API's include breaking changes over the years. :) Seems neat!

You could easily add to the current script a custom email, sent from your Google/Gmail account that owns the script. Perhaps this could be added towards the end when talking about customization / advanced usage. What to put in that email may vary, sometimes it may just be a thank-you with some information, other times you may want to send some of the data from the form. The sky's the limit as far as I know (well, you can only send so many emails a day, aside from -that-!). #55

The code actually works ! And as an update from my message above, I did manage to make it work with your script ! It's actually pretty simple, and it allows you to customize the emails and "send some of the data from the form" as you said !
That kind of feature could definitely be an addition to the advanced usage section !

Awesome! Do you have a sense of any of the major changes you had to make? Or an example use-case to share here (or on a GitHub Gist / other code sharing site?). Would be great to add one to the tutorial! :)

Absolutely. I'll edit that comment tomorrow and share some code !

No worries - feel free to just post a new one, as edits don't get sent via email. +1 Thanks!

Well, after many tries, it turns out I can't fix some major bugs related with the script mentioned above, when working combined with your script.
The solution I found for now is to add "cc" as a parameter of the MailApp.sendEmail method, that way both the sender and the owner of the form receive a message. It's not ideal because both receive exactly the same message with the same html body format, but it's fine in my case! (event reminder)

As a note, there is no guarantee that a form has an email in the underlying form. Any implementation would need to be fault-tolerant, likely having a fallback/default of not sending it to anybody.

found a potential solution linked above, let's plan to just get a link to that in the repo.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ThomasSalty picture ThomasSalty  路  4Comments

jchesner picture jchesner  路  3Comments

austinjupiter picture austinjupiter  路  3Comments

mckennapsean picture mckennapsean  路  4Comments

vlknlvnt picture vlknlvnt  路  4Comments