GPGMailer::encodeFileForEmail
Encode file for email, encryption results in ASCII armored data which removed need for base 64 encoding step.
Signature
public function encodeFileForEmail(mixed
$file,
[boolean
$destFileName = false,
[string
$disposition = NULL,
[string
$extraHeaders = ""]]] )
Parameters
$file
—
mixed
- Array of file data including content or just string indicating filename
$destFileName
—
boolean
- Destination filename
$disposition
—
string
- Disposition of attachment, inline or attachment
$extraHeaders
—
string
- Extra headers for attachement
Returns
- string
- Contents for attachement including headers and ASCII armored file content
Line |
Task |
254+ |
test with filename instead of array passed as $file, see Email::attachFile() and ::attachFileFromString() |
254+ |
test with $destFilename |
254+ |
test with disposition set to inline |
254+ |
test with contentLocation param, see Mailer::encodeFileForEmail() |
284 |
Need to test with contentLocation param |
304 |
Need to test with contentLocation param |