Skip to content

Latest commit

 

History

History
48 lines (37 loc) · 837 Bytes

README.md

File metadata and controls

48 lines (37 loc) · 837 Bytes

EmailR

Summary

EmailR is an email service written in Rust

Getting Started

  1. 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
  1. Run a local instance of RabbitMQ
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.13-management
  1. Add your environment variables
cp example.env .env

Make sure to update with your credentials

  1. Start the app
cargo run

Sending an email

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>"
}

Email Image