Hello list, I've been trying to forward/attach a Zend_Mail_Message that I retrieved from an IMAP account to a Zend_Mail instance. I've come a decent way, but not far enough. I'm not very literate in mail protocols, but this is what I've tried so far:
// $storage is instance of Zend_Mail_Storage $rawMessage = $storage->getRawHeader( $messageNumber ) . base64_decode( $storage->getRawContent( $messageNumber ) ); $mail->createAttachment( $rawMessage, 'message/rfc822', // this was suggested on some forum Zend_Mime::DISPOSITION_INLINE, Zend_Mime::ENCODING_7BIT // tried ENCODING_BASE64 encoding as well, but that completely failed ); $mail->send(); The above does indeed include the message inline, but ouputs too many newlines. It also includes the full headers (which seems logical, as I did include them). What would be the proper way to forward the message inline with proper newlines and with a nice set of From: [email protected] Date: some date Subject: the subject ... headings, the way any usual e-mail client would do, in stead of full headers. Thanks in advance. _________________________________________________________________ Een netbook met Windows 7? Hier vind je alles dat je moet weten. www.windows.nl/netbook
