Compare commits
3 Commits
83c7b45139
...
7c7163f541
Author | SHA1 | Date | |
---|---|---|---|
7c7163f541 | |||
f4cb051b84 | |||
2032b7e0db |
@ -128,10 +128,20 @@ Der Vorstand
|
|||||||
.parse()
|
.parse()
|
||||||
.unwrap());
|
.unwrap());
|
||||||
let splitted = send_to.split(',');
|
let splitted = send_to.split(',');
|
||||||
|
let send_mail = false;
|
||||||
for single_rec in splitted {
|
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
|
let email = email
|
||||||
.subject("ASKÖ Ruderverein Donau Linz | Vereinsgebühren")
|
.subject("ASKÖ Ruderverein Donau Linz | Vereinsgebühren")
|
||||||
.header(ContentType::TEXT_PLAIN)
|
.header(ContentType::TEXT_PLAIN)
|
||||||
@ -152,4 +162,5 @@ Der Vorstand
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user