pub fn simple_builder(domain: &str) -> Result<SmtpTransportBuilder, Error> {
        let mut tls_builder = TlsConnector::builder()?;
        tls_builder.supported_protocols(DEFAULT_TLS_PROTOCOLS)?;

        let tls_parameters =
            ClientTlsParameters::new(domain.to_string(), tls_builder.build().unwrap());

        SmtpTransportBuilder::new((domain, SUBMISSION_PORT),
                                  ClientSecurity::Required(tls_parameters))
    }
/// Simple and secure transport, should be used when possible.
/// Creates an encrypted transport over submission port, using the provided domain
/// to validate TLS certificates.
Simple and secure transport, should be used when possible.
Creates an encrypted transport over submission port, using the provided domain
to validate TLS certificates.
Simple and secure transport should be used when possible . Creates an encrypted transport over submission port using the provided domain to validate TLS certificates .
pub fn simple_builder(domain: &str) -> Result<SmtpTransportBuilder, Error> {
        let mut tls_builder = TlsConnector::builder()?;
        tls_builder.supported_protocols(DEFAULT_TLS_PROTOCOLS)?;
        let tls_parameters =
            ClientTlsParameters::new(domain.to_string(), tls_builder.build().unwrap());
        SmtpTransportBuilder::new((domain, SUBMISSION_PORT),
                                  ClientSecurity::Required(tls_parameters))
    }
pub fn simple_builder ( domain : & str ) -> Result < SmtpTransportBuilder , Error > { let mut tls_builder = TlsConnector :: builder ( ) ? ; tls_builder . supported_protocols ( DEFAULT_TLS_PROTOCOLS ) ? ; let tls_parameters = ClientTlsParameters :: new ( domain . to_string ( ) , tls_builder . build ( ) . unwrap ( ) ) ; SmtpTransportBuilder :: new ( ( domain , SUBMISSION_PORT ) , ClientSecurity :: Required ( tls_parameters ) ) }
Simple and secure transport, should be used when possible.
Simple and secure transport should be used when possible .
domain
&str
domain
&str