output emails sent to log in debug builds

This commit is contained in:
Vincent Breitmoser 2019-04-05 18:23:59 +02:00
parent 4064540b26
commit 39ebfad4a9
No known key found for this signature in database
GPG Key ID: 7BD18320DEADFA11
1 changed files with 7 additions and 0 deletions

View File

@ -125,6 +125,13 @@ impl Service {
}
};
if cfg!(debug_assertions) {
for recipient in to.iter() {
println!("To: {}", recipient.to_string());
}
println!("{}", txt.as_ref().unwrap().to_string());
}
let mut email = EmailBuilder::new()
.from(self.from.clone())
.subject(subject)