Reputation: 13
I can send a test mail with Zend Mail with a Attachement. This works fine. Like this:
$mail = new Zend_Mail();
$mail->setFrom('[email protected]', '[email protected]');
$mail->addTo('[email protected]', '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);
}
Now i will add a extra Content-Type which I can read later. like this:
Content-Type:test/test-test
How can I do that with ZF1?
Upvotes: 0
Views: 469
Reputation: 2173
Try with:
$mail->addHeader('Content-Type', 'test/test-test');
$mail->send($transport);
Upvotes: 2