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

(Required) The full path to the file

$encoding

(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