PHPMailer::encodeFile
Encode a file attachment in requested format.
Returns an empty string on failure.
Signature
protected function encodeFile(string
$path,
[string
$encoding = 'base64'] )
Parameters
$path
— string
The full path to the file$encoding
— string
The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
Returns
- string