Skip to main content

email_enabled_from_config

Function email_enabled_from_config 

Source
pub fn email_enabled_from_config(
    app_root: &Path,
    runtime_conf_path: Option<&Path>,
    relay_prefix: &str,
) -> bool
Expand description

Returns whether a relay configuration explicitly enables outbound email.

§Parameters

§Returns

Returns true when the condition checked by crate::runtime::business::email_enabled_from_config holds and false otherwise.

§Performance

Performance is proportional to the size of the supplied inputs and any parsed or loaded data consumed by crate::runtime::business::email_enabled_from_config.

§Examples

ⓘ
let _result = pharos_native::runtime::business::email_enabled_from_config(std::path::Path::new("apps/dev_docs"), todo!(), todo!());