Skip to content

struct Athena::MIME::Encoder::IDNAddress
inherits Struct #

An IDNA encoder (RFC 5980), defined in RFC 3492.

Encodes the domain part of an address using IDN. This is compatible will all SMTP servers.

Note

The local part is left as-is. In case there are non-ASCII characters in the local part then it depends on the SMTP Server if this is supported.

Included modules

Athena::MIME::Encoder::AddressEncoderInterface

Constructors#

.new#

Methods#

#encode(address : String) : String#

Returns an encoded version of the provided address.

#initialize#