17.9. Additional Headers
السابق | فصل 17. Zend_Mail | التالي

## 17.9. Additional Headers

Arbitrary mail headers can be set by using the `addHeader()` method. It requires two parameters containing the name and the value of the header field. A third optional parameter determines if the header should have only one or multiple values:

مثال 17.8. Adding E-Mail Message Headers

    <?php
    require_once 'Zend/Mail.php';
    $mail = new Zend_Mail();
    $mail->addHeader('X-MailGenerator', 'MyCoolApplication');
    $mail->addHeader('X-greetingsTo', 'Mom', true); // multiple values
    $mail->addHeader('X-greetingsTo', 'Dad', true);
    ?>

السابق | أعلى | التالي
17.8. Controlling the MIME Boundary | البداية | 17.10. Character Sets