samotop-delivery 0.4.4-samotop-dev

samotop-delivery is an implementation of the smtp protocol client in Rust.

Example

```rust pub type Error = Box; pub type Result = std::result::Result;

use samotop_delivery::prelude::{ Envelope, SmtpClient, Transport, };

async fn smtptransportsimple() -> Result<()> { let envelope = Envelope::new( Some("user@localhost".parse().unwrap()), vec!["root@localhost".parse().unwrap()], "id".tostring(), ).unwrap(); let message = "From: user@localhost\r\n\ Content-Type: text/plain\r\n\ \r\n\ Hello example" .asbytes(); let client = SmtpClient::new("127.0.0.1:2525").unwrap();

// Create a client, connect and send
client.connect_and_send(envelope, message).await.unwrap();

Ok(())

} ```

Credits

This is a fork of async-smtp

License - Apache-2.0/MIT

Licensed under either of Apache License, Version 2.0 or MIT license at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.