1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//! Lightweight SMTP client for ESP-IDF devices.
//!
//! Provides a type-safe SMTP client with support for implicit TLS, STARTTLS,
//! and plaintext connections. Authentication via AUTH PLAIN or AUTH LOGIN.
//!
//! # Feature Flags
//!
//! - `esp-idf` (default): Enables the ESP-IDF transport using `esp_tls`.
//! Without this feature, only the protocol types and trait are available.
//!
//! # Example
//!
//! ```no_run
//! use esp_idf_smtp::{SmtpConfig, Email, TlsMode};
//!
//! let config = SmtpConfig::new("smtp.example.com", 465)
//! .tls_mode(TlsMode::ImplicitTls)
//! .credentials("user", "pass");
//!
//! let email = Email::builder()
//! .from("device@example.com")
//! .to("alert@example.com")
//! .subject("Alert")
//! .body("Something happened.")
//! .build()
//! .unwrap();
//! ```
pub use ;
pub use ;
pub use SmtpError;
pub use SmtpResponse;
pub use SmtpTransport;
pub use SmtpClient;