{"id":13778636,"url":"https://github.com/paragasu/lua-resty-aws-email","last_synced_at":"2025-05-11T12:31:16.374Z","repository":{"id":74216793,"uuid":"65271362","full_name":"paragasu/lua-resty-aws-email","owner":"paragasu","description":"Send email using Amazon Simple Email Service (SES)  API.","archived":false,"fork":false,"pushed_at":"2019-06-12T07:21:42.000Z","size":24,"stargazers_count":4,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-03T18:13:09.625Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/paragasu.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}},"created_at":"2016-08-09T07:03:03.000Z","updated_at":"2020-12-11T16:44:52.000Z","dependencies_parsed_at":"2024-01-07T22:44:54.406Z","dependency_job_id":"98863b98-fddb-47c3-8078-b9bf89b95971","html_url":"https://github.com/paragasu/lua-resty-aws-email","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paragasu%2Flua-resty-aws-email","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paragasu%2Flua-resty-aws-email/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paragasu%2Flua-resty-aws-email/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/paragasu%2Flua-resty-aws-email/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/paragasu","download_url":"https://codeload.github.com/paragasu/lua-resty-aws-email/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225048973,"owners_count":17412902,"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-03T18:00:55.541Z","updated_at":"2024-11-17T14:30:42.815Z","avatar_url":"https://github.com/paragasu.png","language":"Lua","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# lua-resty-aws-email\nSend email using Amazon Simple Email Service(SES) API.\n\n# Installation\n```lua\n#luarocks install lua-resty-aws-email\n```\n\n# API\n\n**:new(aws_email_config)**\n- @param table with \n  - aws_key from aws dashboard\n  - aws_secret from aws dashboard\n  - aws_region aws_region is where the SES account created\n\n**:send(email, subject, body)**  \nSend email body as text\n- @param email string recipient email\n- @param subject string email subject\n- @param body string email content\n\n**:send_html(email, subject, body)**  \nsend email body as html\n- @param email string recipient email\n- @param subject string email subject\n- @param body string email content\n\n# Usage\n```lua\nlocal ses = require 'resty.aws_email'\n\n-- value from amazon simple email service dashboard\nlocal aws_auth_config = {\n  aws_key = 'AKIDEXAMPLE',\n  aws_secret   = \"xxxsecret\",\n  aws_region   = \"us-east-1\",  \n}\n\nlocal email = ses:new(aws_auth_config)\nlocal res, err = email:send('hello@world.com', 'hello there', 'Sent using AWS Simple Email Service API') \n\nif not sent then\n  ngx.say('Failed: ' .. err)\nelse\n  ngx.say('Sent')\n```\n\n# Todo\n- Add support for file attachment\n\n\n# References\n[AWS SES API](https://docs.aws.amazon.com/ses/latest/DeveloperGuide/query-interface-requests.html)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparagasu%2Flua-resty-aws-email","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparagasu%2Flua-resty-aws-email","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparagasu%2Flua-resty-aws-email/lists"}