Skip to content

veeso-dev/sesamo

Repository files navigation

sesamo

Developed by @veeso

Current version: 0.2.1 (16/08/2024)

License-MIT Repo stars

Linux CI



About sesamo

sesamo is a Rust web service which exposes an endpoint to send custom email to custom recipients.


Get started

Setup env

cp .env.test .env
vim .env
EMAIL_SENDER=EMAIL_ADDRESS_CONFIGURED_TO_AWS_SES
LISTEN_URL=127.0.0.1:3001
PIDFILE=/var/run/sesamo.pid

Setup AWS credentials

AWS credentials must be configured with aws-cli with aws configure. Credentials are then automatically loaded from defined profile

Run with Cargo make

cargo make -p production run

sesamo API

Check

Check web service status:

GET /check

Response: Empty (200)

Send

Send email to recipients with provided subject and body.

The body must be a BASE64 encoded HTML.

POST /send

Body:

{
  "recipients": ["[email protected]", "[email protected]"],
  "subject": "email subject",
  "body": "BODY BASE64 ENCODED"
}

Response: Empty (200)


Changelog

View sesamo's changelog HERE


License

sesamo is licensed under the MIT license.

You can read the entire license HERE