protected function PHPMailer::validateEncoding
Search API
5.x PHPMailer.php | protected PHPMailer::validateEncoding($encoding) |
Validate encodings.
Parameters
$encoding:
Return value
bool
4 calls to PHPMailer::validateEncoding()
- PHPMailer::addAttachment in inc/
PHPMailer/ src/ PHPMailer.php - Add an attachment from a path on the filesystem. Never use a user-supplied path to a file! Returns false if the file could not be found or read. Explicitly *does not* support passing URLs; PHPMailer is not an HTTP client. If you need to do that, fetch…
- PHPMailer::addEmbeddedImage in inc/
PHPMailer/ src/ PHPMailer.php - Add an embedded (inline) attachment from a file. This can include images, sounds, and just about any other document type. These differ from 'regular' attachments in that they are intended to be displayed inline with the message, not just…
- PHPMailer::addStringAttachment in inc/
PHPMailer/ src/ PHPMailer.php - Add a string or binary attachment (non-filesystem). This method can be used to attach ascii or binary data, such as a BLOB record from a database.
- PHPMailer::addStringEmbeddedImage in inc/
PHPMailer/ src/ PHPMailer.php - Add an embedded stringified attachment. This can include images, sounds, and just about any other document type. If your filename doesn't contain an extension, be sure to set the $type to an appropriate MIME type.
File
- inc/
PHPMailer/ src/ PHPMailer.php, line 3517
Class
- PHPMailer
- PHPMailer - PHP email creation and transport class.
Namespace
PHPMailer\PHPMailerCode
protected function validateEncoding($encoding)
{
return in_array(
$encoding,
[
self::ENCODING_7BIT,
self::ENCODING_QUOTED_PRINTABLE,
self::ENCODING_BASE64,
self::ENCODING_8BIT,
self::ENCODING_BINARY,
],
true
);
}