diff --git a/src/model/mail.rs b/src/model/mail.rs index dc5aff7..d03cf79 100644 --- a/src/model/mail.rs +++ b/src/model/mail.rs @@ -128,8 +128,9 @@ Der Vorstand .parse() .unwrap()); let splitted = send_to.split(','); - let send_mail = false; + let mut send_mail = false; for single_rec in splitted { + let single_rec = single_rec.trim(); match single_rec.parse() { Ok(val) => { email = email.bcc(val);