EmailR is an email service written in Rust
- Check if rust is installed
which rustc
If 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 .env
Make sure to update with your credentials
- Start the app
cargo run
Once the app is started you can send an email by adding a message to the RabbitMQ queue.
Message Example:
{
"to": "[email protected]",
"from": "[email protected]",
"subject": "Email from EmailR",
"body": "<p>Test123</p>"
}