Function vsmtp_rule_engine::api::time::date

pub fn date() -> String
Expand description

Get the current date.

Return

  • string - the current date.

Effective smtp stage

All of them.

Examples

#{
    preq: [
       action "append info header" || {
            msg::append_header("X-VSMTP", `email received by ${utils::hostname()} the ${time::date()}.`);
       }
    ]
}

rhai-autodocs:index:2