From 08878169bc587b1c99a8047eaa77dad2b0e3b551 Mon Sep 17 00:00:00 2001 From: nobody Date: Fri, 26 Jul 2024 20:00:33 +0200 Subject: [PATCH] fix enum bugs --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9b6d8b2..f07f6bc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,6 +45,7 @@ use lettre::message::header::MessageId; use lettre::transport::smtp::authentication::Credentials; // MAIL END +#[derive(PartialEq)] enum EMailOperationStates { Test, ProductionToIntern @@ -254,7 +255,7 @@ fn mail_versenden(inhalt: String, betreff: String) -> std::result::Result"} else {"CCCB Intern "}; + let mail_to: &str = if TESTING_MODE == EMailOperationStates::Test { "Marek Krug "} else {"CCCB Intern "}; let email = Message::builder() // Set the sender's name and email address