Zend_Mail-Boundary.xml 631 B

1234567891011121314151617181920
  1. <sect1 id="zend.mail.boundary">
  2. <title>Nastavenie hranice MIME</title>
  3. <para>
  4. Ak má e-mail viac častí oddeľujú sa pomocou hranice ktorá sa generuje náhodne. Pomocou metódy
  5. <code>setMimeBoundary()</code> je možné nastaviť vlastnú MIME hranicu, napríklad:
  6. </para>
  7. <example>
  8. <title>Nastavenie hranice MIME</title>
  9. <programlisting role="php"><![CDATA[
  10. <?php
  11. require_once 'Zend/Mail.php';
  12. $mail = new Zend_Mail();
  13. $mail->setMimeBoundary('=_' . md5(microtime(1) . $someId++);
  14. // build message...
  15. ?>]]> </programlisting>
  16. </example>
  17. </sect1>
  18. <!--
  19. vim:se ts=4 sw=4 et:
  20. -->