Learn-to-send-email-via-google-script-html-no-server: The power of Script + Drv-tw (site hosted on Google Free)

Created on 21 Jun 2019  路  3Comments  路  Source: dwyl/learn-to-send-email-via-google-script-html-no-server

Hey! I have been looking for a solution to the contact form without PHP and this is amazing!

I recently undertook the task of learning HTML + CSS + JS at once using Bootstrap.

Since I do not work on this, I do not have a hosting service. But I came across the wonderful solution of drv.tw and at the same time I found out about all the limitations that this entails (not having a server and its services like PHP and MySQL). But in view of my possibilities, I started looking to make the most of (drv.tw) and one of the limitations was not being able to send a contact email (something that is very important for companies and websites) until I found with this post on npmjs.com and I came to stop here.
隆隆隆I want to thank completely who made all this possible.!!! <3

Drv.tw + Google Script Contact are an incredible and powerful combination to have a free and complete website! (+ cloudflare is even better!)
Now, I've got all this, I want to go for more! Therefore, I would like to know if it can be do organize or further customize the mail that is sent (although as it is, it is functional).

On the other hand, will it be possible to create a google script that creates new html pages inside the folder that hosts the drv.tw website?
If so, it may be possible to create a dynamic website hosted on Google Drive. (It's Free! XD)

驴Is it possible to create a dynamic Blog on a static site hosted on Google Drive? Will it be very ambitious?

I leave you to see the website I'm setting up Website
(I am recreating and modernizing another website to learn)

Most helpful comment

Hey! I have been looking for a solution to the contact form without PHP and this is amazing!

Glad to hear this has been so helpful so far!!

I would like to know if it can be do organize or further customize the mail that is sent (although as it is, it is functional).

Totally can! Any HTML content is allowed in the Google Script so you can output all sorts of prettier emails (and CSS can help make it look much nicer).

On the other hand, will it be possible to create a google script that creates new html pages inside the folder that hosts the drv.tw website?

It may be possible to have a Google Script react to input from the user to auto-generate sites. Could have some risk/danger. But it may be possible to set up a form that, for example, will auto-create content that shows up, like a blog post. However, this is all public, so someone else could always abuse that and post content on your site.

Is it possible to create a dynamic Blog on a static site hosted on Google Drive? Will it be very ambitious?

I'm not sure on Google Drive hosted websites - you can share content through Google Drive (files), but not really a website. Google does have a product called Google Sites for wiki-like content (not sure how active this is / if it is at risk of being given the axe later...).

You can use GitHub and other sites for free hosting. You can even use some dynamic content using Jekyll, the static site generator that GitHub has for free on any public repository.

JavaScript (and other languages) also have static site generators. You can even use popular frameworks like React, Vue, and Angular to pre-generate site content (using command-line tools and build scripts) to output plain HTML, CSS, & JS files that can be hosted for free. This requires a build & deploy process to get changes online, but it can be achieved for free. These methods require the most technical expertise, so if that is too much I would recommend looking at one of the other solutions above.

All 3 comments

Hey! I have been looking for a solution to the contact form without PHP and this is amazing!

Glad to hear this has been so helpful so far!!

I would like to know if it can be do organize or further customize the mail that is sent (although as it is, it is functional).

Totally can! Any HTML content is allowed in the Google Script so you can output all sorts of prettier emails (and CSS can help make it look much nicer).

On the other hand, will it be possible to create a google script that creates new html pages inside the folder that hosts the drv.tw website?

It may be possible to have a Google Script react to input from the user to auto-generate sites. Could have some risk/danger. But it may be possible to set up a form that, for example, will auto-create content that shows up, like a blog post. However, this is all public, so someone else could always abuse that and post content on your site.

Is it possible to create a dynamic Blog on a static site hosted on Google Drive? Will it be very ambitious?

I'm not sure on Google Drive hosted websites - you can share content through Google Drive (files), but not really a website. Google does have a product called Google Sites for wiki-like content (not sure how active this is / if it is at risk of being given the axe later...).

You can use GitHub and other sites for free hosting. You can even use some dynamic content using Jekyll, the static site generator that GitHub has for free on any public repository.

JavaScript (and other languages) also have static site generators. You can even use popular frameworks like React, Vue, and Angular to pre-generate site content (using command-line tools and build scripts) to output plain HTML, CSS, & JS files that can be hosted for free. This requires a build & deploy process to get changes online, but it can be achieved for free. These methods require the most technical expertise, so if that is too much I would recommend looking at one of the other solutions above.

Wow! thank you very much for your time and willingness to answer questions that even had nothing to do with this script D:! (and I realized later, sorry I was excited)

I was seeing that there are several threads that mention the personalization of the mail, but I do not understand how to carry it out (since there are some lines of script code that take all the elements of the form and simply put them together). I will continue reviewing the threads and problems posted, I will close this soon!

Hi!
I am too looking for a working contact form.
Here is my website https://www.asncc.in which is hosted on drv.tw

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Herbert2122 picture Herbert2122  路  4Comments

eleosa picture eleosa  路  4Comments

bacloud14 picture bacloud14  路  4Comments

vlknlvnt picture vlknlvnt  路  4Comments

joseroma picture joseroma  路  3Comments