Location: PHPKode > projects > EXtensible Production Suite (XPS) > xpsdev/helpers/xpm3/DOCUMENTATION/mime/message.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>XPM3_MIME::message()</title>
<style>
body, pre {
	font-family: Verdana;
	font-size: 10pt;
}
</style>
</head>
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

<pre>
XPM3_MIME :: <i>array</i> <b>message</b> ( <i>string</i> content, <i>string</i> mime_type [, <i>string</i> name [, <i>string</i> charset [, <i>string</i> encoding [, <i>string</i> disposition [, <i>string</i> id ]]]]] )
<hr>
Returns an array with mail message components: <i>string</i> name, <i>string</i> disposition, <i>string</i> header, <i>string</i> content.

Default values are:
<i>string</i> name: empty
<i>string</i> charset: us-ascii
<i>string</i> encoding: quoted-printable
<i>string</i> disposition: inline
<i>string</i> id: empty

Example:
<table border="0" bgcolor="white">
<tr><td>
<pre><code>
$msg = XPM3_MIME::message('Text message', 'text/plain', 'file.txt', 'us-ascii', 'base64', 'attachment');

// print result
print_r($msg);

/* will print:
Array
(
    [name] => file.txt
    [disposition] => attachment
    [header] => Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="file.txt"
    [content] => VGV4dCBtZXNzYWdl

)
*/
</code></pre>
</td></tr>
</table>

<hr color="white">

[ <a style="color: blue; text-decoration: none" href="mailto:hide@address.com?subject=Comment XPM3_MIME message">Comments</a> ]

Last update: Monday, January 22, 2007

</pre>

</body>
</html>
Return current item: EXtensible Production Suite (XPS)