smtp

Types

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

Constructors

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

Functions

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