Files
lettre/docs/creating-messages/index.xml
2018-01-27 15:44:18 +01:00

25 lines
1.5 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>Creating messages on Lettre site</title>
<link>https://lettre.github.io/lettre/creating-messages/</link>
<description>Recent content in Creating messages on Lettre site</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Sun, 21 May 2017 23:46:01 +0200</lastBuildDate>
<atom:link href="https://lettre.github.io/lettre/creating-messages/index.xml" rel="self" type="application/rss+xml" />
<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((&amp;#34;user@example.org&amp;#34;, &amp;#34;Firstname Lastname&amp;#34;)) // ... or by an address only .from(&amp;#34;user@example.com&amp;#34;) .subject(&amp;#34;Hi, Hello world&amp;#34;) .</description>
</item>
</channel>
</rss>