{"id":13630876,"url":"https://github.com/jameskirkby/serverless-contact-form","last_synced_at":"2025-04-17T17:31:55.587Z","repository":{"id":216339705,"uuid":"74042923","full_name":"jameskirkby/serverless-contact-form","owner":"jameskirkby","description":"Email contact form using the Serverless framework on AWS Lambda","archived":false,"fork":false,"pushed_at":"2018-05-11T09:58:25.000Z","size":7,"stargazers_count":38,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-08T22:36:50.047Z","etag":null,"topics":["lambda","serverless"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jameskirkby.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-11-17T15:57:51.000Z","updated_at":"2023-09-17T21:13:52.000Z","dependencies_parsed_at":"2024-01-17T00:50:26.987Z","dependency_job_id":null,"html_url":"https://github.com/jameskirkby/serverless-contact-form","commit_stats":null,"previous_names":["jameskirkby/serverless-contact-form"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jameskirkby%2Fserverless-contact-form","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jameskirkby%2Fserverless-contact-form/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jameskirkby%2Fserverless-contact-form/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jameskirkby%2Fserverless-contact-form/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jameskirkby","download_url":"https://codeload.github.com/jameskirkby/serverless-contact-form/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249360022,"owners_count":21257152,"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":["lambda","serverless"],"created_at":"2024-08-01T22:02:01.836Z","updated_at":"2025-04-17T17:31:55.311Z","avatar_url":"https://github.com/jameskirkby.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Serverless Email Contact Form\nSend contact form emails using Serverless with AWS Lambda and AWS SES\n\n## Prerequisites\nYou will need:\n\n* An AWS account\n* An IAM account with privileges to send emails using SES\n* An email address that's been [verified in SES](http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html). This is the email you'll be sending your emails to\n* The [AWS CLI](https://aws.amazon.com/cli/) installed on your local machine, configured to your IAM credentials\n* [serverless](https://serverless.com/) installed on your local machine\n\n## Installation\n1. Clone this repository to your local machine, and change to that directory\n2. Change the values in `handler.js` in the `ses.sendEmail()` function, set the **ToAddresses** and **Source** to the email you've verified in SES. You can have multiple **ToAddresses**, as long as they're all verified in SES\n3. You can test the function locally by running `serverless invoke local --function sendForm  --path event.json`. This will run the function using the data in `event.json`\n4. Run `serverless deploy` to upload to AWS Lambda\n5. You can test the function through Lambda by running `serverless invoke --function sendForm  --path event.json`. This will run the function using the data in `event.json`\n6. A very basic contact form is included in the repository, `index.html`, replace `API_GATEWAY_URL` with the gateway URL that serverless displays in the console after you've deployed it. You can use this to test that the form works from a webpage. Uncomment the `redirectUrl` field if you want to redirect to another URL after a successful form submission.\n7. You should be able to see the results of each form submission in **AWS CloudWatch \u003e Log Groups \u003e /aws/lambda/contact-form-prod-sendForm** (when you're in the AWS Console, make sure you're in the same region that you set in serverless.yml, otherwise the logs may not show up in CloudWatch)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameskirkby%2Fserverless-contact-form","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjameskirkby%2Fserverless-contact-form","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjameskirkby%2Fserverless-contact-form/lists"}