EmailR is an email service written in Rust
- Check if rust is installed
which rustcIf rust is not installed install it
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh- Run a local instance of RabbitMQ
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.13-management- Add your environment variables
cp example.env .envMake sure to update with your credentials
- Start the app
cargo runOnce the app is started you can send an email by adding a message to the RabbitMQ queue.
Message Example:
{
"to": "josh.st.king@gmail.com",
"from": "jking@joshstking.com",
"subject": "Email from EmailR",
"body": "<p>Test123</p>"
}