Zend_Mail-Boundary.xml 906 B

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