#smtp #server #email

mailin-embedded

An SMTP server that can be embedded in other programs

5 releases (3 breaking)

✓ Uses Rust 2018 edition

0.4.0 Mar 13, 2019
0.3.0 Jan 19, 2019
0.2.1 Dec 28, 2018
0.2.0 Dec 15, 2018
0.1.0 Dec 6, 2018

#48 in Email

Download history 3/week @ 2018-11-28 16/week @ 2018-12-05 13/week @ 2018-12-12 14/week @ 2018-12-19 12/week @ 2018-12-26 11/week @ 2019-01-02 8/week @ 2019-01-09 14/week @ 2019-01-16 2/week @ 2019-01-23 1/week @ 2019-01-30 19/week @ 2019-02-13 1/week @ 2019-02-20 21/week @ 2019-02-27 6/week @ 2019-03-06

40 downloads per month

MIT/Apache

74KB
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
~49K SLoC