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§
- Batch
Response - One entry per submitted message, in order.
- Batch
Result - 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.
- List
Options - Paging for the list endpoints.
- Page
- A page of results.
totalcounts everything matching, not just this page. - Send
Request - One outbound message.
- Send
Response - 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.
- Vibe
Mail - 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.