{"id":13551061,"url":"https://github.com/jmoiron/contact-form","last_synced_at":"2025-04-11T11:25:30.723Z","repository":{"id":29170631,"uuid":"32701213","full_name":"jmoiron/contact-form","owner":"jmoiron","description":"server that implements an email contact form for an otherwise static website","archived":false,"fork":false,"pushed_at":"2015-03-23T19:14:15.000Z","size":136,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T07:51:09.451Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmoiron.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-22T23:31:43.000Z","updated_at":"2024-06-23T14:07:04.000Z","dependencies_parsed_at":"2022-08-17T20:05:05.798Z","dependency_job_id":null,"html_url":"https://github.com/jmoiron/contact-form","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoiron%2Fcontact-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoiron%2Fcontact-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoiron%2Fcontact-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmoiron%2Fcontact-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmoiron","download_url":"https://codeload.github.com/jmoiron/contact-form/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248382849,"owners_count":21094563,"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","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":[],"created_at":"2024-08-01T12:01:41.804Z","updated_at":"2025-04-11T11:25:30.704Z","avatar_url":"https://github.com/jmoiron.png","language":"Go","funding_links":[],"categories":["Go","others"],"sub_categories":[],"readme":"# contact-form\n\n[![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/jmoiron/contact-form/master/LICENSE)\n\nA simple stand-alone web server which implements a contact form on an\notherwise static website.\n\nContains code from [Alex Edward's Form Validation blog post](http://www.alexedwards.net/blog/form-validation-and-processing)\nwhich is [licensed under the MIT\nlicence](https://twitter.com/ajmedwards/status/580082588879970305).\n\n## usage\n\nIf you run `contact-form` in a directory, it will serve up everything in that\ndirectory as a static file in the same way a server like `nginx` or `apache`\nwould, defaulting to `index.html` when a \"directory\" is accessed.\n\nIt also sets up a listener on `/contact/`, which does a few things:\n\n* You can `POST` with `email`, `subject`, and `message` to attempt to send\n  an email.  This returns a json message `{\"success\": true}` on success and\n  `{\"success\": false, \"error\": \"\u003can error message\"}` on failure.\n\n* If there are validation erorrs on particular fields (eg message length,\n  invalid email address, etc.), then those fields will have an error message\n  in the returned json, eg: `{\"email\": \"invalid email address\"}`.\n\n## spam control\n\nBy default, `contact-form` will check incoming messages against the\n[postmark spamcheck API](http://spamcheck.postmarkapp.com/doc).  If you do\nnot want this, or it gets discontinued or changed, you can disable this with\nthe `-nospam` flag or an environ variable.\n\n## configuring\n\nYou can use the following environment variables to control the way that\n`contact-form` behaves and sends email.\n\n```\nCONTACT_PORT        listener http port\nCONTACT_NOSPAM      if set, do not check messages for spam\nCONTACT_MAILPORT    outgoing mail server port\nCONTACT_MAILHOST    outgoing mail server host\nCONTACT_MAILUSER    outgoing mail server username\nCONTACT_MAILPASS    outgoing mail server passsword\nCONTACT_DESTEMAIL   destination email address for messages\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmoiron%2Fcontact-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmoiron%2Fcontact-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmoiron%2Fcontact-form/lists"}