Case Submission — Aligner Portal
STL Upper
Click or drag file
STL Lower
Click or drag file
Full Face Smiling
Click or drag photo
Full Face Not Smiling
Click or drag photo
Profile Not Smiling
Click or drag photo
Upper Occlusal
Click or drag
Right Lateral
Click or drag
Front View
Click or drag
Left Lateral
Click or drag
Lower Occlusal
Click or drag
Panoramic
Click or drag file
Cephalometric
Click or drag file
✓ Case submitted successfully. Confirmation sent to your email.
DEV GUIDE
Connecting Gmail — Integration Options
For your web designer / developer. Three approaches ranked by ease of implementation.
Option B — Google Drive + Gmail via Make.com (handles large files)
Best for large files

When files are large (STL files can be 10–50 MB), email attachments won't work reliably. This approach uploads the files to a shared Google Drive folder and sends you an email with the organized folder link. Uses Make.com (formerly Integromat) as the automation bridge — no coding required after setup.

  1. Your developer adds a backend endpoint (Node.js, PHP, or Python — even a serverless function on Vercel/Netlify) that receives the form data via fetch() POST.
  2. That endpoint uses the Google Drive API to create a folder named Patient — John Smith — 2025-06-12 and uploads each file into it with its category as the filename prefix.
  3. After upload, the endpoint triggers the Gmail API (or Make.com webhook) to send you an email: "New case submitted by Dr. [Name] — Patient: [Name] — View files: [Drive link]"
  4. On Make.com: create a scenario with trigger Webhook → Google Drive: Upload File → Gmail: Send Email. No code needed on Make.com side.
  5. In the form's submitCase(), replace the placeholder with a fetch('YOUR_WEBHOOK_URL', formData) POST call using FormData to include all the files.
Cost: Make.com free plan covers ~1,000 operations/month. Google Drive uses your existing storage quota. Gmail API is free for standard send volumes.
Option C — Formspree (simplest, limited file size)
Quickest setup

Formspree is the simplest drop-in: point the form action to your Formspree endpoint, and file uploads go straight to your Gmail as attachments. Good for testing or low-volume use. File size limit is 10 MB per submission on the free plan.

  1. Sign up at formspree.io and create a new form. Copy the form endpoint URL (looks like https://formspree.io/f/xyzabcde).
  2. Change the form's submit handler to POST to that URL using the standard FormData API.
  3. In the Formspree dashboard, set the notification email to your Gmail. Every submission will arrive there with all uploaded files attached.
  4. Formspree labels each field by the input's name attribute — make sure each <input> in this file has a descriptive name (e.g. name="stl_upper"). Your designer only needs to add those name attributes.
Recommendation: Use Formspree only to validate the flow end-to-end during development. Switch to Option A or B for production, especially once STL files are involved.
Summary for your designer: The form frontend is complete and ready. The only tasks remaining are: (1) add name="..." attributes to each file input, (2) choose one of the three options above, (3) replace the submitCase() placeholder function with the chosen email-send call, and (4) add your clinic's Gmail address as the destination. Estimated developer time: 1–3 hours depending on the option chosen.