#smtp #server #email

mailin-embedded

An SMTP server that can be embedded in other programs

3 unstable releases

✓ Uses Rust 2018 edition

0.2.1 Dec 28, 2018
0.2.0 Dec 15, 2018
0.1.0 Dec 6, 2018

#48 in Email

Download history 11/week @ 2018-12-09 8/week @ 2018-12-16 12/week @ 2018-12-23 15/week @ 2018-12-30 5/week @ 2019-01-06 12/week @ 2019-01-13

17 downloads per month

MIT/Apache

72KB
2K SLoC

A SMTP server that can be embedded into another program

This library provides a simple embeddable SMTP server. The server uses blocking IO and a threadpool.

Examples

use mailin_embedded::{Server, SslConfig, Handler};

#[derive(Clone)]
struct MyHandler {}
impl Handler for MyHandler{}

let handler = MyHandler {};
let mut server = Server::new(handler);

server.with_name("example.com")
   .with_ssl(SslConfig::None)
   .with_addr("127.0.0.1:25")
   .unwrap();
server.serve_forever();

lib.rs:

A SMTP server that can be embedded into another program

This library provides a simple embeddable SMTP server. The server uses blocking IO and a threadpool.

Examples

use mailin_embedded::{Server, SslConfig, Handler};

#[derive(Clone)]
struct MyHandler {}
impl Handler for MyHandler{}

let handler = MyHandler {};
let mut server = Server::new(handler);

server.with_name("example.com")
   .with_ssl(SslConfig::None)
   .with_addr("127.0.0.1:25")
   .unwrap();
server.serve_forever();

Dependencies

~2MB
~48K SLoC