Click here to Skip to main content
13,199,318 members (45,345 online)
Click here to Skip to main content
Add your own
alternative version

Tagged as


9 bookmarked
Posted 9 May 2017

Send Email from a Static HTML

, 9 May 2017
Rate this:
Please Sign up or sign in to vote.
How to send email from a static HTML

This post discusses how to send an email without back-end/server side code.

There are many solutions available for sending an email. Here, I am explaining steps to sending an email from an HTML page using Google Apps mail.

1. Make a Copy of the Sample Spreadsheet



2. Open the Script Editor

Open the Script editor… by clicking “Tools” > “Script editor…


3. Set the TO_ADDRESS in the Script


4. Save a New Version of Your Script

Goto File-> Manager Version option to set Version

5. Publish the Updated Script as a Web App

Goto menu Publish-> Deploy as Web app option to publish

Select the latest project version to deploy:


6. Authorize the Script to Send Emails

Click Continue to authorize this app:


Copy the web app URL to your clipboard / Notepad. Then click “OK”.


7. Create Your Basic HTML Form


8. Open the HTML Form (page) in Your Browser

Fill in some sample data in the HTML Form:


Submit the form. You should see a confirmation that it was sent like:

\"message\":[\"This is test \"],\"email\":[\"\"]}"}

Alternate solution: Use Ajax to submit the form

Hope this helps!

Background Reading


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Senior) Advance Web Software
India India
Rahul a self driven software engineer has Masters of Computer Application with knack for taking up any new technology and putting it into application to achieve desired results.His expertise is in Database driven web-applications with Web 2.0 User Interface.

He topped university in his Master course and received various programming awards. He is keen learner, passionate about programming and having good interpersonal and analytical skillset.

Also have good command on : Webservices,Window Service, Ajax, Java Script, Telerik, Subsonic, Entity Framework, CSLA Architecture, Windows Workflow.

Excellent communication, interpersonal, and presentation skills. Ability to learn and adapt to new technologies rapidly.

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.171020.1 | Last Updated 10 May 2017
Article Copyright 2017 by rahulgbhatia
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid