PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

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 598. Changing the MIME Boundary

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

Zend Framework