feat(all): Merge Email and SendableEmail into lettre::Email

This commit is contained in:
Alexis Mousset
2019-12-18 16:51:04 +01:00
parent 5e521b0c82
commit ce37464050
22 changed files with 70 additions and 92 deletions

View File

@@ -1,12 +1,12 @@
extern crate env_logger;
extern crate lettre;
use lettre::{EmailAddress, Envelope, SendableEmail, SmtpClient, Transport};
use lettre::{Email, EmailAddress, Envelope, SmtpClient, Transport};
fn main() {
env_logger::init();
let email = SendableEmail::new(
let email = Email::new(
Envelope::new(
Some(EmailAddress::new("user@localhost".to_string()).unwrap()),
vec![EmailAddress::new("root@localhost".to_string()).unwrap()],