{"id":29878345,"url":"https://github.com/ajaynegi45/formmaillygo","last_synced_at":"2025-08-28T02:49:09.174Z","repository":{"id":306496049,"uuid":"1026390361","full_name":"ajaynegi45/FormMaillyGo","owner":"ajaynegi45","description":"FormMaillyGo lets you send contact form messages from any website directly to your email — for free. It's fast, secure, and runs on AWS Lambda, so no monthly limits like other services. Just plug it in and get messages instantly.","archived":false,"fork":false,"pushed_at":"2025-08-25T18:33:45.000Z","size":632,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-25T20:38:53.260Z","etag":null,"topics":["aws-lambda","email-service","form-submission","free-contact-form","golang","serverless"],"latest_commit_sha":null,"homepage":"https://ajaynegi45.github.io/FormMaillyGo","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ajaynegi45.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["ajaynegi45"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":"ajaynegi","thanks_dev":null,"custom":null}},"created_at":"2025-07-25T20:00:00.000Z","updated_at":"2025-08-25T18:33:48.000Z","dependencies_parsed_at":"2025-08-25T20:35:14.949Z","dependency_job_id":null,"html_url":"https://github.com/ajaynegi45/FormMaillyGo","commit_stats":null,"previous_names":["ajaynegi45/form-mailly-go","ajaynegi45/formmaillygo"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/ajaynegi45/FormMaillyGo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaynegi45%2FFormMaillyGo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaynegi45%2FFormMaillyGo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaynegi45%2FFormMaillyGo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaynegi45%2FFormMaillyGo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ajaynegi45","download_url":"https://codeload.github.com/ajaynegi45/FormMaillyGo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ajaynegi45%2FFormMaillyGo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272424907,"owners_count":24932895,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-28T02:00:10.768Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-lambda","email-service","form-submission","free-contact-form","golang","serverless"],"created_at":"2025-07-31T07:01:57.166Z","updated_at":"2025-08-28T02:49:09.147Z","avatar_url":"https://github.com/ajaynegi45.png","language":"HTML","funding_links":["https://github.com/sponsors/ajaynegi45","https://buymeacoffee.com/ajaynegi"],"categories":[],"sub_categories":[],"readme":"## FormMaillyGo – Free, Serverless Contact Form to Email Gateway\n\n**FormMaillyGo** is a lightweight backend that turns any contact form submission into a **real email** — **fast, secure, and completely free (within generous [AWS Lambda limits](https://aws.amazon.com/lambda/pricing/) )**.\n\n### 🧑‍💻 Whom is this for?\n\n* Solo developers, indie hackers, or small startups\n* Static websites (like those on Netlify, Vercel, GitHub Pages)\n* Anyone tired of paid contact form services (like Formspree, Getform, etc.)\n\n---\n\n## 🚀 Why Use FormMaillyGo?\n\nMost free contact form services only allow **50–100 submissions/month**. That’s *very* limited.\n\nFormMaillyGo runs on **AWS Lambda (or any serverless platform)**, which has a **much higher free tier**. It’s ideal for scaling contact form handling **at zero or ultra-low cost**.   \n\nYou only pay if your usage goes beyond free limits — and even then, it’s cheaper than paid form services.\n\nThe AWS Lambda free tier includes one million free requests per month and 400,000 GB-seconds of compute time per month\n\n---\n\n## 🛠️ How It Works\n\n1. Your frontend sends a **JSON POST** request to `/api/contact`\n2. FormMaillyGo:\n\n   * ✅ Validates input (like name, email, etc.)\n   * 📧 Formats a clean HTML email\n   * 📤 Sends the message via SMTP (Gmail, SES, Postmark, etc.)\n3. You receive the message directly in your inbox.\n\n---\n\n## 🔐 Key Benefits\n\n* **Zero dependency**: No external SDKs or vendor lock-in.\n* **Military-grade validation**: Validates names, emails, message content.\n* **Fully async-ready**: No delay to your main app.\n* **Perfect for serverless**: Cold-start optimized.\n\n---\n\n## 🧪 API Endpoints\n\n| Method | Endpoint       | Description                 |\n| ------ | -------------- | --------------------------- |\n| GET    | `/api/health`  | Check if the server is live |\n| POST   | `/api/contact` | Send contact form data      |\n\n### Example Contact Form Payload:\n\n```json\n{\n  \"name\": \"Alice\",\n  \"email\": \"alice@email.com\",\n  \"subject\": \"Product Feedback\",\n  \"message\": \"Loved your product!\",\n  \"product_name\": \"MySite\",\n  \"product_website\": \"https://mysite.com\"\n}\n```\n\n---\n\n## 🧾 Setup\n\n### 1. Set up your `.env` file:\n\n```\nSENDER_EMAIL=your@gmail.com\nSENDER_EMAIL_PASSWORD=your-gmail-app-password\nRECEIVER_EMAIL=you@example.com\nSMTP_HOST=smtp.gmail.com\nSMTP_PORT=587\n```\n\n### 2. Run the server:\n\n```bash\ngo run main.go\n```\n\nWorks out-of-the-box on port **8080**.\n\n---\n\n## 📁 File Structure (Simplified)\n\n| File                  | Role                                   |\n| --------------------- | -------------------------------------- |\n| `main.go`             | Sets up server + routes                |\n| `handler.go`          | Handles requests + JSON validation     |\n| `email.go`            | Sends emails using SMTP                |\n| `contact.go`          | Defines the contact form structure     |\n| `validator.go`        | Validates inputs like email, URL, etc. |\n| `config.go`           | Loads SMTP config from `.env`          |\n| `template/contact.go` | Generates HTML email template          |\n\n---\n\n## 🧘 Simplicity + Power\n\nFormMaillyGo gives you **control without complexity**. You get:\n\n* Unlimited usage (within AWS/GCP free tier)\n* Full validation\n* Fully customizable\n* No monthly fees\n\n\n\n## License \u0026 Attribution\n\nThis project is under MIT License\n\nRead carefully [MIT License](https://github.com/ajaynegi45/FormMaillyGo/blob/main/LICENSE) [NOTICE](https://github.com/ajaynegi45/FormMaillyGo/blob/main/NOTICE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajaynegi45%2Fformmaillygo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fajaynegi45%2Fformmaillygo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fajaynegi45%2Fformmaillygo/lists"}