``` VELSAN CONSTRUCTION AND REAL-ESTATE || Building The Foundations Of A Better Future ``` ```

Get in Touch

We would love to hear from you. Get in touch with Velsan Construction and Real-Estate for your construction and real-estate requirements.

Contact Info

Let’s Get in Touch

Your email address will not be published. Required fields are marked *

``` ``` ### Google Apps Script — final version Your Apps Script should be: ```javascript function doPost(e) { try { var sheet = SpreadsheetApp .getActiveSpreadsheet() .getSheetByName("form data"); sheet.appendRow([ new Date(), e.parameter.name || "", e.parameter.email || "", e.parameter.phone || "", e.parameter.subject || "", e.parameter.message || "" ]); return ContentService .createTextOutput(JSON.stringify({ success: true })) .setMimeType(ContentService.MimeType.JSON); } catch (error) { return ContentService .createTextOutput(JSON.stringify({ success: false, error: error.toString() })) .setMimeType(ContentService.MimeType.JSON); } } ``` Your **`form data`** sheet should have: ```text Date | Name | Email | Phone | Subject | Message ``` ### ⚠️ One final step After putting the Apps Script code in place: **Google Sheets → Extensions → Apps Script → Deploy → Manage deployments → Edit → New version → Deploy** Make sure **Who has access = Anyone**. Then upload this `contact.html` to your website. **Do not use `assets/inc/sendemail.php` or `ajax-form.js` for this form.**