frontmail 0.1.0
frontmail: ^0.1.0 copied to clipboard
Send emails from Flutter and Dart apps through your Frontmail templates with the public key – retries with idempotency, delivery status and Cloudflare Turnstile helpers.
Changelog #
All notable changes to the Frontmail Dart/Flutter SDK (frontmail on pub.dev). Versions are
released from git tags vX.Y.Z.
0.1.0 #
Initial release.
Frontmailclient (public key only –sk_…keys are refused):send(templateId:, params:, serviceId:, options:)with JSON params (DateTimeandtoJson()objects included), attachments, Turnstile token, template language (SendOptions.locale).status(messageId:, statusToken:)– delivery status via theX-Frontmail-Status-Tokenheader.Frontmail.fetchPublicConfig(apiUrl:)/publicConfig()– cached public configuration (shared mobile Turnstile key).- Retries for network errors, timeouts,
5xxand429(exponential backoff with full jitter,Retry-Afterup to 60 s), one idempotency key per send, per-attempt timeout,abortTrigger. FrontmailExceptionwithcode,message,status,docsUrl,details,retryAfterand category checks.Turnstilehelpers forwebview_flutter: inline widget page, message parsing, navigation guard, site resolution (shared key or your own).- Pure Dart (
httponly): Android, iOS, macOS, Windows, Linux, web and Dart on the server.