fix(all): accept Into<SendableEmail>

When sending a mail, accept not only `SendableEmail`, but also anything
that can be converted .into() a `SendableEmail`.
This commit is contained in:
gralpli
2019-11-29 15:08:52 +01:00
parent 83a0185a83
commit 86e51813ca
7 changed files with 15 additions and 7 deletions

View File

@@ -67,7 +67,7 @@ fn main() {
// Open a local connection on port 25
let mut mailer = SmtpClient::new_unencrypted_localhost().unwrap().transport();
// Send the email
let result = mailer.send(email.into());
let result = mailer.send(email);
if result.is_ok() {
println!("Email sent");