PHPMailer::EncodeFile

Encodes attachment in requested format.

Returns an empty string on failure.