version 0.0.13
This commit is contained in:
14
Cargo.toml
14
Cargo.toml
@@ -1,7 +1,7 @@
|
||||
[package]
|
||||
|
||||
name = "smtp"
|
||||
version = "0.0.12"
|
||||
version = "0.0.13"
|
||||
description = "Simple SMTP client"
|
||||
readme = "README.md"
|
||||
documentation = "http://amousset.github.io/rust-smtp/smtp/"
|
||||
@@ -12,12 +12,12 @@ authors = ["Alexis Mousset <contact@amousset.me>"]
|
||||
keywords = ["email", "smtp", "mailer"]
|
||||
|
||||
[dependencies]
|
||||
time = "*"
|
||||
uuid = "*"
|
||||
log = "*"
|
||||
rustc-serialize = "*"
|
||||
rust-crypto = "*"
|
||||
bufstream = "*"
|
||||
time = "0.1"
|
||||
uuid = "0.1"
|
||||
log = "0.3"
|
||||
rustc-serialize = "0.3"
|
||||
rust-crypto = "0.2"
|
||||
bufstream = "0.1"
|
||||
|
||||
[dependencies.email]
|
||||
git = "https://github.com/amousset/rust-email.git"
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
//! builder = builder.subject("Hello world");
|
||||
//! builder = builder.body("Hi, Hello world.");
|
||||
//! builder = builder.reply_to("contact@example.com");
|
||||
//! //builder = builder.add_header(("X-Custom-Header", "my header"));
|
||||
//! builder = builder.add_header(("X-Custom-Header", "my header"));
|
||||
//!
|
||||
//! let email = builder.build();
|
||||
//!
|
||||
@@ -138,7 +138,7 @@
|
||||
//! let _ = email_client.quit();
|
||||
//! ```
|
||||
|
||||
//#![deny(missing_docs)]
|
||||
#![deny(missing_docs)]
|
||||
|
||||
#[macro_use] extern crate log;
|
||||
extern crate rustc_serialize as serialize;
|
||||
|
||||
@@ -82,6 +82,7 @@ pub struct Email {
|
||||
}
|
||||
|
||||
impl Email {
|
||||
/// Displays the formatted email content
|
||||
pub fn as_string(&self) -> String {
|
||||
self.message.as_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user