stalwartlabs / mail-send

E-mail delivery library for Rust with DKIM support
https://docs.rs/mail-send/
Apache License 2.0
206 stars 21 forks source link

Disable SSL/TLS #17

Closed soywod closed 1 year ago

soywod commented 1 year ago

Is there a way to totally disable SSL/TLS? I am replacing lettre by mail-send, and I don't see how to do it. The equivalent with lettre is:

SmtpTransport::relay(&config.host)?.tls(Tls::None);
soywod commented 1 year ago

I just found the answer by browsing the code: builder.connect_plain(). Could be nice to add it somewhere in the doc or as an example.