{"id":23746267,"url":"https://github.com/askrella/aws-ses-mock","last_synced_at":"2025-09-04T20:32:10.116Z","repository":{"id":151050280,"uuid":"606206903","full_name":"askrella/aws-ses-mock","owner":"askrella","description":"AWS SES simulator for e2e testing e.g. in pipelines :gear:","archived":false,"fork":false,"pushed_at":"2024-04-30T08:49:34.000Z","size":57,"stargazers_count":13,"open_issues_count":6,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-30T10:04:04.426Z","etag":null,"topics":["aws","aws-ses","email","emulator","mock"],"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/askrella.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-02-24T21:04:31.000Z","updated_at":"2024-04-30T10:04:04.426Z","dependencies_parsed_at":"2023-12-10T21:30:04.193Z","dependency_job_id":"91287ee7-19e7-40ac-b8a7-5d7ad9c63434","html_url":"https://github.com/askrella/aws-ses-mock","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askrella%2Faws-ses-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askrella%2Faws-ses-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askrella%2Faws-ses-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/askrella%2Faws-ses-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/askrella","download_url":"https://codeload.github.com/askrella/aws-ses-mock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231991355,"owners_count":18457030,"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":["aws","aws-ses","email","emulator","mock"],"created_at":"2024-12-31T13:32:03.551Z","updated_at":"2024-12-31T13:32:04.165Z","avatar_url":"https://github.com/askrella.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  AWS SES Mock\n\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n![Docker](https://github.com/askrella/whatsapp-chatgpt/actions/workflows/docker.yml/badge.svg)\n![Docker AMD64](https://img.shields.io/badge/docker-amd64-blue)\n![Docker ARM64](https://img.shields.io/badge/docker-arm64-green)\n![Build](https://img.shields.io/github/actions/workflow/status/askrella/aws-ses-mock/docker.yml?branch=master)\n\n\n![Askrella](https://avatars.githubusercontent.com/u/77694724?s=100)\n\nWe created this project as a new version of aws-ses-local, which doesn't seem to be maintained for a few years.\nOur goal is to provide more features, small containers and be more accurate than the alternatives.\n\n# :gear: Getting Started\n\n## Running the Docker Container\n\n```bash\ndocker run -p 8081:8081 ghcr.io/askrella/aws-ses-mock:1.0.30\n```\n\n## Usage with NodeJS\n\nUsing the AWS SDK you can set the endpoint for SES manually by specifying the endpoint in your configuration:\n\n```javascript\nimport AWS from 'aws-sdk'\nconst ses = new AWS.SES({ region: 'us-east-1', endpoint: 'http://localhost:8080' })\n```\n\n## Usage with Golang\n\nUsing the AWS SDK you can set the endpoint for SES manually by overriding the endpoint resolver:\n\n```golang\ncustomResolver := aws.EndpointResolverWithOptionsFunc(func(service, region string, options ...interface{}) (aws.Endpoint, error) {\n    if overrideEndpoint, exists := os.LookupEnv(\"OVERRIDE_SES_ENDPOINT\"); exists {\n        return aws.Endpoint{\n            PartitionID:   \"aws\",\n            URL:           overrideEndpoint,\n            SigningRegion: \"eu-central-1\",\n        }, nil\n    }\n\n    return aws.Endpoint{}, \u0026aws.EndpointNotFoundError{}\n})\n\ncfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion(\"eu-central-1\"), config.WithEndpointResolverWithOptions(customResolver))\n```\n\n## Manual testing\n\nThe `POST` endpoint is available under `http://localhost:8080/` and should contain the raw JSON body used for SES messages:\n```json\n{\n    \"Action\": \"SendEmail\",\n    \"Destination\": {\n        \"ToAddresses\": [\n            \"recipient@example.com\"\n        ],\n        \"CcAddresses\": [\n            \"cc@example.com\"\n        ],\n        \"BccAddresses\": [\n            \"bcc@example.com\"\n        ]\n    },\n    \"Message\": {\n        \"Body\": {\n            \"Text\": {\n                \"Data\": \"This is the message body in plain text format.\"\n            },\n            \"Html\": {\n                \"Data\": \"\u003chtml\u003e\u003cbody\u003e\u003ch1\u003eHello World!\u003c/h1\u003e\u003cp\u003eThis is the message body in HTML format.\u003c/p\u003e\u003c/body\u003e\u003c/html\u003e\"\n            }\n        },\n        \"Subject\": {\n            \"Data\": \"Test email\"\n        }\n    },\n    \"Source\": \"sender@example.com\",\n    \"ReplyToAddresses\": [\n        \"reply-to@example.com\"\n    ]\n}\n```\n\n## :test_tube: Running Tests\n\nTo run tests, run the following command\n\n```bash\n  go test ./internal/*\n```\n\n\n# :wave: Contributors\n\n\u003ca href=\"https://github.com/askrella/aws-ses-mock/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=askrella/aws-ses-mock\" /\u003e\n\u003c/a\u003e\n\n* [Askrella Software Agency](askrella.de)\n  * [Steve](https://github.com/steve-hb) (Maintainer)\n  * [Navo](https://github.com/navopw) (Maintainer)\n\nFeel free to open a new pull request with changes or create an issue here on GitHub! :)\n\n# :warning: License\nDistributed under the MIT License. See LICENSE.txt for more information.\n\n# :handshake: Contact Us\n\nIn case you need professional support, feel free to \u003ca href=\"mailto:contact@askrella.de\"\u003econtact us\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskrella%2Faws-ses-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faskrella%2Faws-ses-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faskrella%2Faws-ses-mock/lists"}