-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
-
-
+
+
+
-
-
+
+
diff --git a/docs/sending-messages/index.xml b/docs/sending-messages/index.xml
index 3f6e045..6eb1f95 100644
--- a/docs/sending-messages/index.xml
+++ b/docs/sending-messages/index.xml
@@ -2,21 +2,21 @@
Sending messages on Lettre site
- https://lettre.github.io/lettre/sending-messages/
+ http://docs.lettre.at/sending-messages/
Recent content in Sending messages on Lettre siteHugo -- gohugo.ioen-usSun, 21 May 2017 23:46:01 +0200
-
+ Introduction
- https://lettre.github.io/lettre/sending-messages/intro/
+ http://docs.lettre.at/sending-messages/intro/
Sun, 21 May 2017 23:46:17 +0200
- https://lettre.github.io/lettre/sending-messages/intro/
+ http://docs.lettre.at/sending-messages/intro/This mailer contains several different transports for your emails. To be sendable, the emails have to implement SendableEmail, which is the case for emails created with lettre_email.
The following transports are available:
The SmtpTransport uses the SMTP protocol to send the message over the network. It is the preferred way of sending emails. The SendmailTransport uses the sendmail command to send messages. It is an alternative to the SMTP transport.
@@ -24,10 +24,10 @@ The following transports are available:
SMTP transport
- https://lettre.github.io/lettre/sending-messages/smtp/
+ http://docs.lettre.at/sending-messages/smtp/
Sun, 21 May 2017 23:46:17 +0200
- https://lettre.github.io/lettre/sending-messages/smtp/
+ http://docs.lettre.at/sending-messages/smtp/This transport uses the SMTP protocol to send emails over the network (locally or remotely).
It is designed to be:
Secured: email are encrypted by default Modern: Unicode support for email content and sender/recipient addresses when compatible Fast: supports tcp connection reuse This client is designed to send emails to a relay server, and should not be used to send emails directly to the destination.
@@ -36,30 +36,30 @@ The relay server can be the local email server, a specific host or a third-party
Sendmail transport
- https://lettre.github.io/lettre/sending-messages/sendmail/
+ http://docs.lettre.at/sending-messages/sendmail/
Sun, 21 May 2017 23:46:17 +0200
- https://lettre.github.io/lettre/sending-messages/sendmail/
+ http://docs.lettre.at/sending-messages/sendmail/The sendmail transport sends the email using the local sendmail command.
extern crate lettre; use lettre::sendmail::SendmailTransport; use lettre::{SimpleSendableEmail, EmailTransport}; fn main() { let email = SimpleSendableEmail::new( "user@localhost".to_string(), &["root@localhost".to_string()], "message_id".to_string(), "Hello world".to_string(), ).unwrap(); let mut sender = SendmailTransport::new(); let result = sender.send(&email); assert!(result.is_ok()); }File transport
- https://lettre.github.io/lettre/sending-messages/file/
+ http://docs.lettre.at/sending-messages/file/
Sun, 21 May 2017 23:46:17 +0200
- https://lettre.github.io/lettre/sending-messages/file/
+ http://docs.lettre.at/sending-messages/file/The file transport writes the emails to the given directory. The name of the file will be message_id.txt. It can be useful for testing purposes, or if you want to keep track of sent messages.
extern crate lettre; use std::env::temp_dir; use lettre::file::FileEmailTransport; use lettre::{SimpleSendableEmail, EmailTransport}; fn main() { // Write to the local temp directory let mut sender = FileEmailTransport::new(temp_dir()); let email = SimpleSendableEmail::new( "user@localhost".to_string(), &["root@localhost".to_string()], "message_id".to_string(), "Hello world".to_string(), ).Stub transport
- https://lettre.github.io/lettre/sending-messages/stub/
+ http://docs.lettre.at/sending-messages/stub/
Sun, 21 May 2017 23:46:17 +0200
- https://lettre.github.io/lettre/sending-messages/stub/
+ http://docs.lettre.at/sending-messages/stub/The stub transport only logs message envelope and drops the content. It can be useful for testing purposes.
extern crate lettre; use lettre::stub::StubEmailTransport; use lettre::{SimpleSendableEmail, EmailTransport}; fn main() { let email = SimpleSendableEmail::new( "user@localhost".to_string(), &["root@localhost".to_string()], "message_id".to_string(), "Hello world".to_string(), ).unwrap(); let mut sender = StubEmailTransport::new_positive(); let result = sender.send(&email); assert!(result.is_ok()); } Will log (when using a logger like env_logger):
b7c211bc-9811-45ce-8cd9-68eab575d695: from=<user@localhost> to=<root@localhost>
diff --git a/docs/sending-messages/intro/index.html b/docs/sending-messages/intro/index.html
index 4f50b75..f00ea08 100644
--- a/docs/sending-messages/intro/index.html
+++ b/docs/sending-messages/intro/index.html
@@ -7,22 +7,22 @@
-
+
Introduction :: Lettre site
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
-
+
-
+