Unable to send attachments with Zend Framework to Gmail and Lotus Notes

BennDover

New Member
I'm trying to send a file via Zend Framework's (1.10.7) Mail library.\[code\]$mail = new Zend_Mail();$mail->setSubject('Test');$mail->setFrom('[email protected]');$mail->setBodyText ( "" );$at = $mail->createAttachment($txtFile->toString(), 'text/plain', Zend_Mime::DISPOSITION_ATTACHMENT, Zend_Mime::ENCODING_8BIT);$mail->addTo ( "[email protected]" ); $mail->send();\[/code\]The file is a simple text file.It works with Outllok, I receive a proper attachment but not with Gmail and Lotus Notes.With Gmail I have this message : This is a message in Mime Format. If you see this, your mail reader does not support this format.Lotus Notes says this :MIME content for this item is stored in attchment $RFC822.eml. Parsing MIME content failed: Incorrect format in MIME data..What's wrong with Zend's Mail attachments ?
 
Back
Top