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
//! Rust client for the smbCloud transactional email API.
//!
//! Send transactional email from your verified domain and read each message's
//! delivery status. This crate handles the HTTP transport and the
//! `Authorization: Bearer <api_key>` header; you build the message and own the
//! content.
//!
//! # Quick start
//!
//! ```no_run
//! use smbcloud_email_sdk::{EmailClient, EmailCredentials, Environment, SendEmail};
//!
//! #[tokio::main]
//! async fn main() -> anyhow::Result<()> {
//! let client = EmailClient::from_credentials(
//! Environment::Production,
//! EmailCredentials { api_key: "smb_mail_your_key" },
//! );
//!
//! let message = SendEmail::new("billing@example.com", ["customer@acme.com"])
//! .subject("Your receipt")
//! .html("<h1>Thanks!</h1>")
//! .text("Thanks!")
//! .idempotency_key("receipt-2026-0001");
//!
//! let sent = client.send(&message).await?;
//! println!("sent {} ({:?})", sent.id, sent.status);
//!
//! Ok(())
//! }
//! ```
pub use EmailClient;
pub use ;
pub use EmailError;
pub use ;
pub use Environment;