NEO EMAIL
The modern way to build emails services with Rust
Features
- Easy and Fast to implement
- Built on top of Tokio
- Customization
- Like build a HTTP API
- Open Source
Examples
use ;
use ;
use Mutex;
async
// This function is called when an authentication is received
// What is data?
// This send the client: `AUTH PLAIN AHlvdXJfdXNlcm5hbWUAeW91cl9wYXNzd29yZA==`
// data is `PLAIN AHlvdXJfdXNlcm5hbWUAeW91cl9wYXNzd29yZA==`, just without the command AUTH, which is stripped by the server, you have to handle the command in your controller
// Ok(Message) for successful authentication
// Err(Message) for failed authentication and the connection will be closed peacefully
pub async
// This function is called when an email is received
// The mail is a struct that contains the email data, in this case the raw email data in a Vec<u8>
// Headers are parsed in a hashmap and the body is a Vec<u8>
pub async
More Examples
Check out examples/ for examples
Authors
- Jean Vides
- You can be here ;)
Sponsors
Nothing here :<
Collaboration
Feel free to collaborate to this project