Content
in package
FinalYes
An object that represents the content of the email, and optionally a character set specification.
Table of Contents
Properties
- $charset : string|null
- The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify `UTF-8`, `ISO-8859-1`, or `Shift_JIS`.
- $data : string
- The content of the message itself.
Methods
- __construct() : mixed
- create() : self
- getCharset() : string|null
- getData() : string
- throwException() : never
Properties
$charset
The character set for the content. Because of the constraints of the SMTP protocol, Amazon SES uses 7-bit ASCII by default. If the text includes characters outside of the ASCII range, you have to specify a character set. For example, you could specify `UTF-8`, `ISO-8859-1`, or `Shift_JIS`.
private
string|null
$charset
$data
The content of the message itself.
private
string
$data
Methods
__construct()
public
__construct(array{Data: string, Charset?: null|string} $input) : mixed
Parameters
- $input : array{Data: string, Charset?: null|string}
create()
public
static create(array{Data: string, Charset?: null|string}|Content $input) : self
Parameters
- $input : array{Data: string, Charset?: null|string}|Content
Return values
selfgetCharset()
public
getCharset() : string|null
Return values
string|nullgetData()
public
getData() : string
Return values
stringthrowException()
private
throwException(Throwable $exception) : never
Parameters
- $exception : Throwable