forked from lettre/lettre
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
message: more body improvements (lettre#519)
- Loading branch information
1 parent
f06b8f3
commit ad96998
Showing
21 changed files
with
422 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ fn bench_simple_send(c: &mut Criterion) { | |
.reply_to("Yuin <[email protected]>".parse().unwrap()) | ||
.to("Hei <[email protected]>".parse().unwrap()) | ||
.subject("Happy new year") | ||
.body("Be happy!") | ||
.body(String::from("Be happy!")) | ||
.unwrap(); | ||
let result = black_box(sender.send(&email)); | ||
assert!(result.is_ok()); | ||
|
@@ -32,7 +32,7 @@ fn bench_reuse_send(c: &mut Criterion) { | |
.reply_to("Yuin <[email protected]>".parse().unwrap()) | ||
.to("Hei <[email protected]>".parse().unwrap()) | ||
.subject("Happy new year") | ||
.body("Be happy!") | ||
.body(String::from("Be happy!")) | ||
.unwrap(); | ||
let result = black_box(sender.send(&email)); | ||
assert!(result.is_ok()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ fn main() { | |
.reply_to("Yuin <[email protected]>".parse().unwrap()) | ||
.to("Hei <[email protected]>".parse().unwrap()) | ||
.subject("Happy new year") | ||
.body("Be happy!") | ||
.body(String::from("Be happy!")) | ||
.unwrap(); | ||
|
||
// Open a local connection on port 25 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,7 @@ fn main() { | |
.reply_to("Yuin <[email protected]>".parse().unwrap()) | ||
.to("Hei <[email protected]>".parse().unwrap()) | ||
.subject("Happy new year") | ||
.body("Be happy!") | ||
.body(String::from("Be happy!")) | ||
.unwrap(); | ||
|
||
// Use a custom certificate stored on disk to securely verify the server's certificate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ fn main() { | |
.reply_to("Yuin <[email protected]>".parse().unwrap()) | ||
.to("Hei <[email protected]>".parse().unwrap()) | ||
.subject("Happy new year") | ||
.body("Be happy!") | ||
.body(String::from("Be happy!")) | ||
.unwrap(); | ||
|
||
let creds = Credentials::new("smtp_username".to_string(), "smtp_password".to_string()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ fn main() { | |
.reply_to("Yuin <[email protected]>".parse().unwrap()) | ||
.to("Hei <[email protected]>".parse().unwrap()) | ||
.subject("Happy new year") | ||
.body("Be happy!") | ||
.body(String::from("Be happy!")) | ||
.unwrap(); | ||
|
||
let creds = Credentials::new("smtp_username".to_string(), "smtp_password".to_string()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ async fn main() { | |
.reply_to("Yuin <[email protected]>".parse().unwrap()) | ||
.to("Hei <[email protected]>".parse().unwrap()) | ||
.subject("Happy new async year") | ||
.body("Be happy with async!") | ||
.body(String::from("Be happy with async!")) | ||
.unwrap(); | ||
|
||
let creds = Credentials::new("smtp_username".to_string(), "smtp_password".to_string()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ async fn main() { | |
.reply_to("Yuin <[email protected]>".parse().unwrap()) | ||
.to("Hei <[email protected]>".parse().unwrap()) | ||
.subject("Happy new async year") | ||
.body("Be happy with async!") | ||
.body(String::from("Be happy with async!")) | ||
.unwrap(); | ||
|
||
let creds = Credentials::new("smtp_username".to_string(), "smtp_password".to_string()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ async fn main() { | |
.reply_to("Yuin <[email protected]>".parse().unwrap()) | ||
.to("Hei <[email protected]>".parse().unwrap()) | ||
.subject("Happy new async year") | ||
.body("Be happy with async!") | ||
.body(String::from("Be happy with async!")) | ||
.unwrap(); | ||
|
||
let creds = Credentials::new("smtp_username".to_string(), "smtp_password".to_string()); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ async fn main() { | |
.reply_to("Yuin <[email protected]>".parse().unwrap()) | ||
.to("Hei <[email protected]>".parse().unwrap()) | ||
.subject("Happy new async year") | ||
.body("Be happy with async!") | ||
.body(String::from("Be happy with async!")) | ||
.unwrap(); | ||
|
||
let creds = Credentials::new("smtp_username".to_string(), "smtp_password".to_string()); | ||
|
Oops, something went wrong.