2
0

Zend_Mail-Boundary.xml 818 B

123456789101112131415161718192021
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- Reviewed: no -->
  3. <sect1 id="zend.mail.boundary">
  4. <title>Controlling the MIME Boundary</title>
  5. <para>
  6. In a multipart message, a MIME boundary for separating the different parts of the message is normally
  7. generated at random. In some cases, however, you might want to specify the MIME boundary that is used.
  8. This can be done using the <code>setMimeBoundary()</code> method, as in the following example:
  9. </para>
  10. <example id="zend.mail.boundary.example-1">
  11. <title>Changing the MIME Boundary</title>
  12. <programlisting language="php"><![CDATA[
  13. $mail = new Zend_Mail();
  14. $mail->setMimeBoundary('=_' . md5(microtime(1) . $someId++));
  15. // build message...
  16. ]]></programlisting>
  17. </example>
  18. </sect1>
  19. <!--
  20. vim:se ts=4 sw=4 et:
  21. -->