Php 从ZF1使用Zend Mail发送电子邮件,我将添加内容类型

Php 从ZF1使用Zend Mail发送电子邮件,我将添加内容类型,php,email,zend-framework,Php,Email,Zend Framework,我可以用Zend邮件和附件发送测试邮件。这个很好用。 像这样: $mail = new Zend_Mail(); $mail->setFrom('test@test333.ch', 'test@test333.ch'); $mail->addTo('test@test333.ch444', 'Test'); $at = $mail->createAttachment($fileContents);

我可以用Zend邮件和附件发送测试邮件。这个很好用。 像这样:

        $mail = new Zend_Mail();
        $mail->setFrom('test@test333.ch', 'test@test333.ch');
        $mail->addTo('test@test333.ch444', 'Test');
        $at = $mail->createAttachment($fileContents);
        $at->type        = 'image/gif';
        $at->disposition = Zend_Mime::DISPOSITION_INLINE;
        $at->encoding    = Zend_Mime::ENCODING_BASE64;
        $at->filename    = 'test.gif';
        $mail->setSubject(
            'Hi'
        );
        $mail->setBodyText('...Your message here...');
        $mail->send($transport);
    }
现在我将添加一个额外的内容类型,我可以稍后阅读。像这样:

Content-Type:test/test-test
如何使用ZF1实现这一点?

尝试使用:

$mail->addHeader('Content-Type', 'test/test-test');
$mail->send($transport);

我在文本中有一个标题是“Content Type:/test/test.test333”。如果我有一个与“Content Type”同名的额外插入,那么我在标题中看不到它们。我改了名字“contentType”,然后又见到了他。但我希望他们被称为一样的。我该怎么做?您只能有一个内容类型标题。