Mail_mimePart::encodeToFile()

Mail_mimePart::encodeToFile() – encode a mail

Synopsis

require_once 'Mail/mimePart.php';

array encodeToFile ( string $filename , string $boundary = null , boolean $skip_head = false )

Description

Encodes and saves the email into file. File must exist. Data will be appended to the file

Parameter

  • string $filename - Output file location

  • string $boundary - Optional pre-defined boundary string

  • boolean $skip_head - True if you don't want to save headers

Return value

array - An associative array containing message headers or PEAR error object

Note

This function can not be called statically.