Skip to content

Template mailer settings query #7

Closed
@kat-ms

Description

@kat-ms

Great project, have enjoyed using it - thanks!

I've got a query about some of the mailer settings that are used in the project:

It looks like there's an environment variable, SEND_EMAIL checked here:

let actually_send: bool = env::var("SEND_EMAIL", "false").eq("true");

But further down there is some validation that looks for a different environment variable SEND_MAIL:

if std::env::var("SEND_EMAIL").is_err() || std::env::var("SEND_MAIL").unwrap().eq("true") {

Was it intended for there to be two different settings to control separate behaviours? The check also appears to print an error message (that at face value sounds contradictory) if SEND_MAIL is set to true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions