is_configured

Function is_configured 

Source
pub fn is_configured() -> bool
Expand description

Check if email is configured (env vars are set and feature is enabled).

Returns true only if both:

  1. The required environment variables for the provider are set
  2. The corresponding feature flag is enabled

Supports auto-detection: if EMAIL_PROVIDER is not set, checks for available API keys and enabled features.

Logs a warning if the provider is specified but the feature flag is not enabled.