Merge pull request 'staging' (#174) from staging into main
Some checks failed
CI/CD Pipeline / test (push) Failing after 2m3s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Has been skipped

Reviewed-on: #174
This commit is contained in:
philipp 2024-01-21 16:01:22 +01:00
commit 7c7163f541

View File

@ -128,10 +128,20 @@ Der Vorstand
.parse()
.unwrap());
let splitted = send_to.split(',');
let send_mail = false;
for single_rec in splitted {
email = email.bcc(single_rec.parse().unwrap());
match single_rec.parse() {
Ok(val) => {
email = email.bcc(val);
send_mail = true;
}
Err(_) => {
println!("Error in mail: {single_rec}");
}
}
}
if send_mail {
let email = email
.subject("ASKÖ Ruderverein Donau Linz | Vereinsgebühren")
.header(ContentType::TEXT_PLAIN)
@ -153,3 +163,4 @@ Der Vorstand
}
}
}
}