90 lines
6.4 KiB
XML
90 lines
6.4 KiB
XML
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
|
|
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
|
<channel>
|
|
<title>Lettre site</title>
|
|
<link>https://lettre.github.io/lettre/</link>
|
|
<description>Recent content on Lettre site</description>
|
|
<generator>Hugo -- gohugo.io</generator>
|
|
<language>en-us</language>
|
|
<lastBuildDate>Sun, 21 May 2017 23:46:17 +0200</lastBuildDate>
|
|
|
|
<atom:link href="https://lettre.github.io/lettre/index.xml" rel="self" type="application/rss+xml" />
|
|
|
|
|
|
<item>
|
|
<title>Introduction</title>
|
|
<link>https://lettre.github.io/lettre/getting-started/intro/</link>
|
|
<pubDate>Sun, 21 May 2017 23:46:17 +0200</pubDate>
|
|
|
|
<guid>https://lettre.github.io/lettre/getting-started/intro/</guid>
|
|
<description>This documentation is written for lettre 0.8. Please use https://docs.rs/lettre/0.7.0/lettre/ for lettre 0.7.
|
|
Lettre is an email library that allows creating and sending messages. It provides:
|
|
An easy to use email builder Pluggable email transports Unicode support (for emails and transports, including for sender et recipient addresses when compatible) Secure defaults (emails are only sent encrypted by default) </description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Introduction</title>
|
|
<link>https://lettre.github.io/lettre/sending-messages/intro/</link>
|
|
<pubDate>Sun, 21 May 2017 23:46:17 +0200</pubDate>
|
|
|
|
<guid>https://lettre.github.io/lettre/sending-messages/intro/</guid>
|
|
<description>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.</description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>SMTP transport</title>
|
|
<link>https://lettre.github.io/lettre/sending-messages/smtp/</link>
|
|
<pubDate>Sun, 21 May 2017 23:46:17 +0200</pubDate>
|
|
|
|
<guid>https://lettre.github.io/lettre/sending-messages/smtp/</guid>
|
|
<description>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.
|
|
The relay server can be the local email server, a specific host or a third-party service.</description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Sendmail transport</title>
|
|
<link>https://lettre.github.io/lettre/sending-messages/sendmail/</link>
|
|
<pubDate>Sun, 21 May 2017 23:46:17 +0200</pubDate>
|
|
|
|
<guid>https://lettre.github.io/lettre/sending-messages/sendmail/</guid>
|
|
<description>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( &#34;user@localhost&#34;.to_string(), &amp;[&#34;root@localhost&#34;.to_string()], &#34;message_id&#34;.to_string(), &#34;Hello world&#34;.to_string(), ).unwrap(); let mut sender = SendmailTransport::new(); let result = sender.send(&amp;email); assert!(result.is_ok()); }</description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Email creation</title>
|
|
<link>https://lettre.github.io/lettre/creating-messages/email/</link>
|
|
<pubDate>Sun, 21 Jan 2018 23:46:17 +0200</pubDate>
|
|
|
|
<guid>https://lettre.github.io/lettre/creating-messages/email/</guid>
|
|
<description>Simple example The email part builds email messages. For now, it does not support attachments. An email is built using an EmailBuilder. The simplest email could be:
|
|
extern crate lettre_email; use lettre_email::EmailBuilder; fn main() { // Create an email let email = EmailBuilder::new() // Addresses can be specified by the tuple (email, alias) .to((&#34;user@example.org&#34;, &#34;Firstname Lastname&#34;)) // ... or by an address only .from(&#34;user@example.com&#34;) .subject(&#34;Hi, Hello world&#34;) .</description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>File transport</title>
|
|
<link>https://lettre.github.io/lettre/sending-messages/file/</link>
|
|
<pubDate>Sun, 21 May 2017 23:46:17 +0200</pubDate>
|
|
|
|
<guid>https://lettre.github.io/lettre/sending-messages/file/</guid>
|
|
<description>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( &#34;user@localhost&#34;.to_string(), &amp;[&#34;root@localhost&#34;.to_string()], &#34;message_id&#34;.to_string(), &#34;Hello world&#34;.to_string(), ).</description>
|
|
</item>
|
|
|
|
<item>
|
|
<title>Stub transport</title>
|
|
<link>https://lettre.github.io/lettre/sending-messages/stub/</link>
|
|
<pubDate>Sun, 21 May 2017 23:46:17 +0200</pubDate>
|
|
|
|
<guid>https://lettre.github.io/lettre/sending-messages/stub/</guid>
|
|
<description>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( &#34;user@localhost&#34;.to_string(), &amp;[&#34;root@localhost&#34;.to_string()], &#34;message_id&#34;.to_string(), &#34;Hello world&#34;.to_string(), ).unwrap(); let mut sender = StubEmailTransport::new_positive(); let result = sender.send(&amp;email); assert!(result.is_ok()); } Will log (when using a logger like env_logger):
|
|
b7c211bc-9811-45ce-8cd9-68eab575d695: from=&lt;user@localhost&gt; to=&lt;root@localhost&gt;</description>
|
|
</item>
|
|
|
|
</channel>
|
|
</rss> |