fix(email): Re-export mime crate

This commit is contained in:
Alexis Mousset
2019-05-05 18:12:02 +02:00
parent 1cbcbbb11f
commit c638650d0a
2 changed files with 4 additions and 3 deletions

View File

@@ -46,10 +46,9 @@ lettre_email = "0.9"
```rust,no_run
extern crate lettre;
extern crate lettre_email;
extern crate mime;
use lettre::{SmtpClient, Transport};
use lettre_email::Email;
use lettre_email::{Email, mime::TEXT_PLAIN};
use std::path::Path;
fn main() {
@@ -60,7 +59,7 @@ fn main() {
.from("user@example.com")
.subject("Hi, Hello world")
.text("Hello world.")
.attachment_from_file(Path::new("Cargo.toml"), None, &mime::TEXT_PLAIN)
.attachment_from_file(Path::new("Cargo.toml"), None, &TEXT_PLAIN)
.unwrap()
.build()
.unwrap();

View File

@@ -13,6 +13,8 @@
unused_import_braces
)]
pub extern crate mime;
pub mod error;
use crate::error::Error;