I have this same problem with ZF 1.6.1. My mail server is Exchange and long subjects work fine using PHP's mail() function, but not using Zend_Mail. It seems that the problem lays in Zend_Mail->_encodeHeader() method.
This is the code used to replicate the issue: // Works $subject = '¿Tu sueldo es justo? a que no... entonces entra a Trabajar.com y búscate un curro donde te paguen muuuuuuuchísima pasta!'; mail('[EMAIL PROTECTED]', $subject, 'Test'); // Does not work as expected $transport = new Zend_Mail_Transport_Smtp(); $mail = new Zend_Mail('utf-8'); $mail->setBodyText('Qué largo este asunto, no?'); $mail->setFrom('[EMAIL PROTECTED]', 'CuantoGanas.com'); $mail->setSubject($subject); // The same long line as above $mail->setReturnPath('[EMAIL PROTECTED]'); $mail->addTo('[EMAIL PROTECTED]'); $mail->send($transport); Thanks! Matthew Weier O'Phinney-3 wrote: > > -- froesi <[EMAIL PROTECTED]> wrote > (on Monday, 01 October 2007, 08:03 AM -0700): >> I updated to newest ZF version. >> Still the same problem. I am not using SMTP. > > Try using it via the SMTP transport, and see if that works. > >> Matthew Weier O'Phinney-3 wrote: >> > >> > -- froesi <[EMAIL PROTECTED]> wrote >> > (on Monday, 01 October 2007, 06:27 AM -0700): >> >> I send a mail via $mail = new Zend_Mail; >> >> I need a long subject. >> >> >> >> The problem is, that Outlook won't correctly paste the linebreaks >> >> together >> >> again. So in a long subject stands an "= " at the position, where the >> >> linebreak was. >> >> >> >> Example: >> >> >> >> Here I write an entry in the Zend Framework Community Bo= ard >> >> >> >> does anybody has an idea? >> > >> > None. I just did a subject of 138 characters and sent via SMTP through >> > our exchange server, and had no issues. > > -- > Matthew Weier O'Phinney > PHP Developer | [EMAIL PROTECTED] > Zend - The PHP Company | http://www.zend.com/ > > -- View this message in context: http://www.nabble.com/Zend_Mail---to-long-subject----Outlook-puts-%27%3D-%27-in-subject-tp12979214p20678275.html Sent from the Zend Framework mailing list archive at Nabble.com.