View Source Swoosh.Mua.MultihostError exception (Swoosh.Mua v0.1.1)

Raised when no relay is used and recipients contain addresses across multiple hosts.

For example:

email =
  Swoosh.Email.new(
    to: {"Mua", "mua@github.com"},
    cc: [{"Swoosh", "mua@swoosh.github.com"}]
  )

Swoosh.Mua.deliver(email, _no_relay_config = %{})

Fields:

  • :hosts - the hosts for the recipients, ["github.com", "swoosh.github.com"] in the example above

Summary

Functions

Link to this function

message(multihost_error)

View Source

Callback implementation for Exception.message/1.