Documentation

Swift_AddressEncoder_Utf8AddressEncoder
in package
implements Swift_AddressEncoder

A UTF-8 email address encoder.

Returns the email address verbatimly in UTF-8 as permitted by RFC 6531 and RFC 6532. It supports addresses containing non-ASCII characters in both local-part and domain (i.e. on both sides of @).

This encoder must be used together with Swift_Transport_Esmtp_SmtpUtf8Handler and requires that the outbound SMTP server supports the SMTPUTF8 extension.

If your outbound SMTP server does not support SMTPUTF8, use Swift_AddressEncoder_IdnAddressEncoder instead. This allows sending to email addresses with non-ASCII characters in the domain, but not in local-part.

Tags
author

Christian Schmidt

Interfaces, Classes and Traits

Swift_AddressEncoder
Email address encoder.

Table of Contents

encodeString()  : string
Returns the address verbatimly.

Methods

encodeString()

Returns the address verbatimly.

public encodeString(string $address) : string
Parameters
$address : string
Return values
string

Search results