smtp

Types

pub type Error {
  TcpError(mug.Error)
  MissingServerCodeError
  InvalidServerCodeError(code: String, expected: Int)
}

Constructors

  • TcpError(mug.Error)
  • MissingServerCodeError
  • InvalidServerCodeError(code: String, expected: Int)

Functions

pub fn send(
  host: String,
  port: Int,
  message: Message,
) -> Result(Nil, Error)
Search Document