NEO EMAIL
Neo Email is a cutting-edge Rust crate designed for modern email handling, focusing on robust and secure email systems, integrating the latest standards and practices in email technology.
Install
Use terminal with Cargo
or add to your Cargo.toml
= { = "0.1", = ["experimental"] }
Features
- Easy and Fast to implement
- Built on top of Tokio
- Built-in Utilities like SPF & DKIM (Experimental)
Examples
// # Example
// Simple SMTP Example using custom state and some controllers
// See examples/Full.md for a more complete example using more controllers and setting up a working server
use SocketAddr;
use Arc;
use SMTPConnection;
use OnAuthController;
use OnEmailController;
use EmailHeaders;
use Mail;
use Message;
use SMTPServer;
use StatusCodes;
use Mutex;
async
// This function is called when an authentication is received
// 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