Zend_Mail-Boundary.xml 879 B

12345678910111213141516171819202122232425
  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 <acronym>MIME</acronym> boundary for separating the different
  7. parts of the message is normally generated at random. In some cases, however, you might
  8. want to specify the <acronym>MIME</acronym> boundary that is used. This can be done using
  9. the <methodname>setMimeBoundary()</methodname> method, as in the following example:
  10. </para>
  11. <example id="zend.mail.boundary.example-1">
  12. <title>Changing the MIME Boundary</title>
  13. <programlisting language="php"><![CDATA[
  14. $mail = new Zend_Mail();
  15. $mail->setMimeBoundary('=_' . md5(microtime(1) . $someId++));
  16. // build message...
  17. ]]></programlisting>
  18. </example>
  19. </sect1>
  20. <!--
  21. vim:se ts=4 sw=4 et:
  22. -->