struct Athena::MIME::Encoder::IDNAddress

Overview

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

Defined in:

encoder/idn_address.cr

Constructors

Instance Method Summary

Instance methods inherited from module Athena::MIME::Encoder::AddressEncoderInterface

encode(address : String) : String encode

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def encode(address : String) : String #

Returns an encoded version of the provided address.


[View source]
def initialize #

[View source]