sevk

Crates.iosevk
lib.rssevk
version0.0.1
created_at2025-12-11 18:04:41.10195+00
updated_at2025-12-11 18:04:41.10195+00
descriptionRust SDK for Sevk API
homepagehttps://sevk.io
repositoryhttps://github.com/sevk-io/sevk-rust
max_upload_size
id1980226
size139,245
(sevkio-dev)

documentation

https://docs.rs/sevk

README

[!WARNING] Sevk is currently in private beta. This SDK is not yet available for public use. Join the waitlist at sevk.io to get early access.

Sevk

Sevk Rust SDK

Official Rust SDK for Sevk email platform.

DocumentationWebsite

Installation

[dependencies]
sevk = "0.1"

Send Email

use sevk::Sevk;

#[tokio::main]
async fn main() {
    let client = Sevk::new("your-api-key");

    client.emails().send(
        "recipient@example.com",
        "hello@yourdomain.com",
        "Hello from Sevk!",
        "<h1>Welcome!</h1>",
    ).await.unwrap();
}

Send Email with Markup

use sevk::{Sevk, markup};

#[tokio::main]
async fn main() {
    let client = Sevk::new("your-api-key");

    let html = markup::render(r#"
      <section padding="40px 20px" background-color="#f8f9fa">
        <container max-width="600px">
          <heading level="1" color="#1a1a1a">Welcome!</heading>
          <paragraph color="#666666">Thanks for signing up.</paragraph>
          <button href="https://example.com" background-color="#5227FF" color="#ffffff" padding="12px 24px">
            Get Started
          </button>
        </container>
      </section>
    "#);

    client.emails().send(
        "recipient@example.com",
        "hello@yourdomain.com",
        "Welcome!",
        &html,
    ).await.unwrap();
}

Documentation

For full documentation, visit docs.sevk.io

License

MIT

Commit count: 0

cargo fmt