#smtp #server #email

mailin-embedded

An SMTP server that can be embedded in other programs

6 releases (3 breaking)

✓ Uses Rust 2018 edition

0.4.1 Mar 22, 2019
0.4.0 Mar 13, 2019
0.3.0 Jan 19, 2019
0.2.1 Dec 28, 2018
0.1.0 Dec 6, 2018

#39 in Email

Download history 19/week @ 2019-02-17 8/week @ 2019-02-24 14/week @ 2019-03-03 22/week @ 2019-03-10 15/week @ 2019-03-17 71/week @ 2019-03-24 7/week @ 2019-03-31 46/week @ 2019-04-07 54/week @ 2019-04-14 312/week @ 2019-04-21 353/week @ 2019-04-28 147/week @ 2019-05-05 27/week @ 2019-05-12 38/week @ 2019-05-19 112/week @ 2019-05-26

813 downloads per month

MIT/Apache

75KB
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

~2.5MB
~48K SLoC