correio/delivery

Provider acceptance is submission evidence, never inbox delivery.

Types

pub type Capability {
  EnvelopeSenderOverride
}

Constructors

  • EnvelopeSenderOverride
pub type Failure {
  InvalidMessage(message.MessageError)
  ConnectionUnavailable
  DeadlineExceeded
  AuthenticationFailed
  TransportSecurity
  AdapterFailure
  CaptureUnavailable
  CapacityReached
  UnsupportedCapability(Capability)
  ProviderLimitExceeded
}

Constructors

  • InvalidMessage(message.MessageError)
  • ConnectionUnavailable
  • DeadlineExceeded
  • AuthenticationFailed
  • TransportSecurity
  • AdapterFailure
  • CaptureUnavailable
  • CapacityReached
  • UnsupportedCapability(Capability)
  • ProviderLimitExceeded
pub type Outcome {
  Accepted(Receipt)
  NotSent(Failure)
  Rejected(Rejection)
  OutcomeUnknown
}

Constructors

pub type Receipt {
  Receipt(
    provider_id: option.Option(String),
    recipients: List(address.Address),
  )
}

Constructors

pub type Rejection {
  Temporary
  Permanent
}

Constructors

  • Temporary
  • Permanent
pub type Sender =
  fn(message.Message) -> Outcome

Values

pub fn describe(outcome: Outcome) -> String

Safe diagnostic text omits addresses, body content and provider responses.

✨ Search Document