Controlling the MIME Boundary - Zend_Mail

Controlling the MIME Boundary

In a multipart message, a MIME boundary for separating the different parts of the message is normally generated at random. In some cases, however, you might want to specify the MIME boundary that is used. This can be done using the setMimeBoundary() method, as in the following example:

Example #1 Changing the MIME Boundary

  1. $mail = new Zend_Mail();
  2. $mail->setMimeBoundary('=_' . md5(microtime(1) . $someId++));
  3. // build message...


© 2006-2022 by Zend by Perforce. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.