smtps with rust-openssl

This commit is contained in:
Alexis Mousset
2015-10-11 19:56:02 +02:00
parent 5d125bdbdb
commit fefb5f7978
6 changed files with 120 additions and 40 deletions

View File

@@ -17,7 +17,7 @@ fn main() {
let mut threads = Vec::new();
for _ in 1..5 {
let th_sender = sender.clone();
threads.push(thread::spawn(move || {
@@ -27,15 +27,15 @@ fn main() {
.body("Hello World!")
.subject("Hello")
.build();
let _ = th_sender.lock().unwrap().send(email);
}));
}
for thread in threads {
let _ = thread.join();
}
let email = EmailBuilder::new()
.to("user@localhost")
.from("user@localhost")