string &get (
array $param
= null
, resource $filename
= null
, boolean $skip_head
= false
)
This function should be called once you have added the text/html/images/attachments. It builds the message and returns it. It does not send it. To send what this function returns (in conjunction with the headers() -function) you would need to use the Mail::send()-function
array $param
- An associative array of build parameters.
See constructor parameters list.
resource $filename
- Optional output file where to save the message
instead of returning it.
boolean $skip_head
- True if you want to return/save only the message without headers.
string
- the body of the message
This function can not be called statically.
For versions older than 1.6.0 Mail_Mime::get() has to be called before Mail_Mime::headers().