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