| 12345678910111213141516171819202122232425 |
- <?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:
- -->
|