PHPMailer::encodeFile

Advertisement

Summery Summery

Encode a file attachment in requested format.

Syntax Syntax

PHPMailer::encodeFile( string $path, string $encoding = 'base64' )

Description Description

Returns an empty string on failure.

Parameters Parameters

$path

(string) (Required) The full path to the file

$encoding

(string) (Optional) The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'

Default value: 'base64'

Return Return

(string)

Source Source

File: wp-includes/class-phpmailer.php


			

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.