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
- Messages
- Builder for Raw Messages
- Builder for Messages
- Attachments
- Send Messages
- Send Message
- Send Raw Message
- Postal API Errors
- Auth Errors
- Message Errors
- Raw Message Errors
Installation
just simply run:
or add the following to your Cargo.toml:
= "0.2.0"
Usage
Usage is quite simple:
use PostalClient;
use MessageBuilder;
// create a postal client
let client = new;
// set only things we require to send a message at all
let message = new
.add_to
.unwrap
.set_from
.set_plain_body
.build
.unwrap;
client.send_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.