1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//! # JetEmail Rust SDK
//!
//! Official Rust SDK for the [JetEmail](https://jetemail.com) email API.
//!
//! ## Quick Start
//!
//! ```no_run
//! # #[tokio::main]
//! # async fn main() -> jetemail::Result<()> {
//! let client = jetemail::JetEmail::new("je_your_api_key");
//!
//! let email = jetemail::CreateEmailOptions::new(
//! "you@example.com",
//! "recipient@example.com",
//! "Hello from JetEmail!",
//! )
//! .with_html("<h1>Hello!</h1>");
//!
//! let response = client.emails.send(email).await?;
//! println!("Sent email: {}", response.id);
//! # Ok(())
//! # }
//! ```
//!
//! ## Blocking Usage
//!
//! Enable the `blocking` feature in your `Cargo.toml`:
//!
//! ```toml
//! [dependencies]
//! jetemail = { version = "0.1", features = ["blocking"] }
//! ```
//!
//! Then use the same API synchronously:
//!
//! ```ignore
//! let client = jetemail::JetEmail::new("je_your_api_key");
//! let response = client.emails.send(email)?;
//! ```
// Re-export public API.
pub use ;
pub use JetEmail;
pub use ;
pub use ;
pub use ;