Expand description
This library provides infrastructure for easy and quick sending of emails. It comes with built-in redundancy by allowing the configuration of multiple SMTP accounts, one of which will be chosen at random. If sending fails, another one if picked and the operation retried, until one succeeded or all failed sending.
If the pgp
feature is enabled, emails can be PGP encrypted to the
given set of recipients.
With the config
feature enable, the library honors a global
system-wide configuration. This configuration can capture anything
from SMTP account to default recipients and means that clients of
this crate don’t have to specify anything but message contents.
Structs§
- Account
- A type representing a single email account.
- Config
config
- A type representing a deserializable configuration for the email sending functionality.
- Email
Opts - A type capturing options for capturing a screenshot.
Enums§
Functions§
- send_
email - Send an email using the provided inputs.
- system_
config config
- Load the system configuration.
- system_
config_ path config
- Retrieve the path to the system configuration.