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.

encode a mail (Previous) generation and sending of a MIME mail (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.