postal_api

postal_api is an API Wrapper for the Postal Mail delivery service. It takes inspiration from postal-node, trying to add additional validation into the MessageBuilder where possible.

Roadmap

Installation

just simply run: bash cargo add postal_api

or add the following to your Cargo.toml:

toml postal_api = "0.2.0"

Usage

Usage is quite simple: ```rust use postalapi::PostalClient; use postalapi::message::MessageBuilder;

// create a postal client let client = PostalClient::new( "http://example.com".tostring(), "mysupersecretapikey".tostring() );

// set only things we require to send a message at all let message = MessageBuilder::new() .addto("someone@example.com") .unwrap() .setfrom("me@example2.com") .setplainbody("HELLO WORLD!") .build() .unwrap();

client.send_message(message); ```

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in postal_api by you, shall be licensed as MIT, without any additional terms or conditions.