Skip to main content

Crate vibemail

Crate vibemail 

Source
Expand description

Official Rust SDK for the VibeMail transactional email API.

The surface here is limited to endpoints the API actually serves. Methods for analytics and listing existed in an earlier draft and returned 404 against every deployment; they are absent rather than broken, and will return when the endpoints do.

use vibemail::{SendRequest, VibeMail};

let client = VibeMail::new(std::env::var("VIBEMAIL_API_KEY").unwrap());

let sent = client
    .send(
        SendRequest::new("ada@example.com")
            .subject("Welcome")
            .text("Glad you're here."),
    )
    .await?;

println!("{} {}", sent.id, sent.status);

Structs§

BatchResponse
One entry per submitted message, in order.
BatchResult
An accepted message, or the reason it was rejected.
Contact
A stored contact.
Deleted
The outcome of a delete.
DnsRecord
A DNS record to publish so a domain can be verified.
Domain
A sending domain on the account.
ListOptions
Paging for the list endpoints.
Page
A page of results. total counts everything matching, not just this page.
SendRequest
One outbound message.
SendResponse
The API’s acknowledgement. Means the message was accepted, not delivered.
Suppression
An address that will not be sent to.
Template
A template stored on the account.
VibeMail
Client for the VibeMail API.

Enums§

Error
Anything that can go wrong talking to the API.

Constants§

VERSION
Version of this SDK, reported in the User-Agent.