File: Zend_Mail-Boundary.xml

package info (click to toggle)
zendframework 1.12.9%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 133,584 kB
  • sloc: xml: 1,311,829; php: 570,173; sh: 170; makefile: 125; sql: 121
file content (25 lines) | stat: -rw-r--r-- 879 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<!-- Reviewed: no -->
<sect1 id="zend.mail.boundary">
    <title>Controlling the MIME Boundary</title>

    <para>
        In a multipart message, a <acronym>MIME</acronym> boundary for separating the different
        parts of the message is normally generated at random. In some cases, however, you might
        want to specify the <acronym>MIME</acronym> boundary that is used. This can be done using
        the <methodname>setMimeBoundary()</methodname> method, as in the following example:
    </para>

    <example id="zend.mail.boundary.example-1">
        <title>Changing the MIME Boundary</title>

        <programlisting language="php"><![CDATA[
$mail = new Zend_Mail();
$mail->setMimeBoundary('=_' . md5(microtime(1) . $someId++));
// build message...
]]></programlisting>
    </example>
</sect1>
<!--
vim:se ts=4 sw=4 et:
-->