OhMySMTP - Rust client

Documentation Latest version

Example usage:

Cargo.toml:

toml ohmysmtp = "0.1.1"

Code:

```rust use ohmysmtp::{Email, File, FileType, OhMySmtp};

let emailservice = OhMySmtp::new("APIKEY");

let result = email_service.send(&Email::new( "from@email.address", "to@email.address", "Body text", ));

let email_advanced_example =

Email::new("from@email.address", "to@email.address", "Body text") .withsubject("Subject line") .withattachment(File::new(b"File!", "file-name.txt", & FileType::Txt));

match emailservice.send( & emailadvanced_example) { Ok(()) => println ! ("Success!"), Err(e) => println ! ("Error :(") } ```

Roadmap

Changelog

0.1.1

0.1.0

Show appreciation

Want to say thanks for this library? Just click the button below and leave a brief note. It would make my day :)

Click me to show appreciation