{"id":17138294,"url":"https://github.com/biodranik/lambda-ses-send-email","last_synced_at":"2025-03-24T07:18:21.458Z","repository":{"id":77204333,"uuid":"165509436","full_name":"biodranik/Lambda-SES-send-email","owner":"biodranik","description":"Lambda function to send email using Amazon SES (Simple Email Service)","archived":false,"fork":false,"pushed_at":"2024-04-21T11:46:02.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T12:47:09.534Z","etag":null,"topics":["amazon","aws","email","js","lambda","node","send","serverless","ses"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/biodranik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-13T13:37:54.000Z","updated_at":"2024-04-30T10:37:31.000Z","dependencies_parsed_at":"2025-01-29T12:42:33.084Z","dependency_job_id":"c941dc20-a97a-43a8-834a-77b47d6cfb44","html_url":"https://github.com/biodranik/Lambda-SES-send-email","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/biodranik%2FLambda-SES-send-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biodranik%2FLambda-SES-send-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biodranik%2FLambda-SES-send-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/biodranik%2FLambda-SES-send-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/biodranik","download_url":"https://codeload.github.com/biodranik/Lambda-SES-send-email/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245224599,"owners_count":20580370,"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":["amazon","aws","email","js","lambda","node","send","serverless","ses"],"created_at":"2024-10-14T20:09:16.667Z","updated_at":"2025-03-24T07:18:21.438Z","avatar_url":"https://github.com/biodranik.png","language":"JavaScript","readme":"# Serverless lambda to send email from HTML form\n\nThis lambda function sends email using Amazon SES (Simple Email Service).\n\n## Installation and Setup\n\n1. Install and setup [serverless](https://serverless.com/framework/docs/providers/aws/guide/installation/).\n2. Verify 'From' and 'To' email addresses in [SES Console](https://console.aws.amazon.com/ses/home).\n3. Deploy this lambda by `sls deploy` and remember it's POST endpoint: it should be used in your HTML form JS code.\n4. Open Lambda function configuration console and add an environment variable. The name of variable should be in lowercase, and it is passed as a query *?source=\u003cenv_variable_name\u003e* parameter to the POST URL above. The value should be in JSON and have three required parameters: *from*, *to* and *subject*. For example:\n```json\n{\"from\":\"from@example.com\",\"to\":\"to@example.com\",\"subject\":\"My Static Website Contact Form\",\"noheaders\":false}\n```\n5. Use sample HTML form, CSS and JS from this repo on your static site. Use your POST URL in the code, like *`https://asd123qwe.execute-api.eu-west-1.amazonaws.com/dev/send?source=your_env_variable_name`*\n\nEnjoy!\n\n## Notes\n\n- JS code sends all form inputs with *name=\"\"* attribute.\n- For better formatting, use *name=\"First Name\" + name=\"Last Name\"* or *name=\"Name\"*, and *name=\"Email\"* inside your `\u003cinput\u003e` tags.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiodranik%2Flambda-ses-send-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbiodranik%2Flambda-ses-send-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbiodranik%2Flambda-ses-send-email/lists"}