Skip to content

Commit

Permalink
feat: Add ability to get SmtpStream from SmtpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
amaury1093 committed Oct 13, 2024
1 parent 52b55c5 commit 93e504f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/smtp_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,11 @@ impl<S: BufRead + Write + Unpin> SmtpTransport<S> {
Ok(transport)
}

/// Get the underlying SmtpStream.
pub fn get_stream(&mut self) -> &mut SmtpStream<S> {
&mut self.stream
}

/// Try to login with the given accepted mechanisms.
pub async fn try_login(
&mut self,
Expand Down

0 comments on commit 93e504f

Please sign in to comment.