Document Sample
Zend+Framework+Issue+Tracker Powered By Docstoc
					Zend Framework Issue Tracker
Displaying 254 issues at 19/Jan/13 5:40 AM.
     Project          Key                    Summary             Issue Type     Status   Priority     Resolution
Zend Framework ZF-12489 Zend_Mail_Protocol_Smtp must use    Improvement       Open       Minor    Unresolved
                             context to bind specific IP.

                                                                                                                   1 of 228
Zend Framework   ZF-12470 'HTML E-Mail' part of the Zend Mail   Docs: Problem   Open   Minor   Unresolved
                          documentation 404s

                                                                                                            2 of 228
Zend Framework   ZF-12445 Zend_Mail Header Bug for Linux   Bug   Closed   Major   Issue Moved
                          Machines for ZF 2.0

                                                                                                3 of 228
Zend Framework   ZF-12428 Sending multiple Mails with      Bug   Closed   Major   Not an Issue
                          Zend\Mime\Part (resource based
                          content) failed

                                                                                                 4 of 228
Zend Framework   ZF-12325 Zend_Mail : sending a message with     Bug   Open   Major   Unresolved
                          setBodyText and createAttachment
                          cause gmail to receave a blank email
                          with a "noname" attachment

                                                                                                   5 of 228
Zend Framework   ZF-12268 Zend_Mail with Methode                  Bug   Open   Major   Unresolved
                          generateMessage() throw a Fatal error
                          with Call to a member function
                          getContent() on a non-object

                                                                                                    6 of 228
Zend Framework   ZF-12237 Illegal characters in email addresses are Bug   Open   Major   Unresolved
                          removed instead of refused

                                                                                                      7 of 228
Zend Framework   ZF-12118 Zend_Mail setParts won't recognize body Improvement   Open   Minor   Unresolved

                                                                                                            8 of 228
Zend Framework   ZF-12102 Provide a configurable timeout for use in Improvement   Open   Minor   Unresolved
                          Zend_Mail_Protocol_Imap::connect, for

Zend Framework   ZF-12097 Zend_Mail_Protocol_Abstract shut-up     Bug             Open   Minor   Unresolved
                          error messages from _connect

                                                                                                              9 of 228
Zend Framework   ZF-11977 Zend_Mail::addHeader() UNfolds long   Bug   Open   Major   Unresolved
                          headers, then throws exception

                                                                                                  10 of 228
Zend Framework   ZF-11909 Problem receiving text mail with colon   Bug   Open   Trivial   Unresolved
                          characters (and the solution).

                                                                                                       11 of 228
Zend Framework   ZF-11866 transfer encoding "quoted-printable"   Bug   Resolved   Major   Duplicate
                          remove zero number during sending

                                                                                                      12 of 228
Zend Framework   ZF-11864 Handle correct Return-Path header when Patch   Open   Minor   Unresolved
                          sending emails via SMTP

                                                                                                     13 of 228
Zend Framework   ZF-11790 Encoded mail header fields not found   Bug   Open   Major   Unresolved

                                                                                                   14 of 228
Zend Framework   ZF-11759 With netbeans as IDE. when trying to       Bug   Resolved   Major   Not an Issue
                          use zend mail with the following code
                          i couldn't send mail, instead sometimes i
                          get a blank white screen after running or
                          else get "An error occurred. Application

                                                                                                             15 of 228
Zend Framework   ZF-11754 CLONE - Zend_Mail -> send() error      Bug   Closed   Major   Duplicate
                          when using AMF with ActionScript 3

Zend Framework   ZF-11750 Zend_Mail -> send() error when using   Bug   Open     Major   Unresolved
                          AMF with ActionScript 3

                                                                                                     16 of 228
Zend Framework   ZF-11590 Return path for Sendmail transport can't Bug   Open   Minor   Unresolved
                          be configured by Zend_Mail
                          setReturnPath method

                                                                                                     17 of 228
Zend Framework   ZF-11576 Quoted printable incorrectly encodes   Bug   Open   Major   Unresolved
                          CRLF octects

                                                                                                   18 of 228
Zend Framework   ZF-11559 Add a helper method to decode base64- Improvement   Open   Minor   Unresolved
                          or quot-print-encoded message headers
                          when possible

                                                                                                          19 of 228
Zend Framework   ZF-11514 Zend_Mail_Message incorrectly merges   Bug   Resolved   Trivial   Fixed
                          configuration flags supplied via

                                                                                                    20 of 228
Zend Framework   ZF-11371 Exception in case of optional Headers   Bug   Postponed Critical   Unresolved

                                                                                                          21 of 228
Zend Framework   ZF-11320 Zend_Mail stripping out email addresses Bug          Resolved   Major   Not an Issue
                          when reading email using IMAP or POP3

Zend Framework   ZF-11266 new method                             Improvement   Open       Major   Unresolved

                                                                                                                 22 of 228
Zend Framework   ZF-11250 mb_send_mail(): Unsupported transfer    Bug           Open   Major   Unresolved
                          encoding "quoted-printable" - will be
                          regarded as 8bit

Zend Framework   ZF-11233 Smtp transport doesn't check for timeout Bug          Open   Major   Unresolved

Zend Framework   ZF-11216 support for IMAP IDLE                   New Feature   Open   Major   Unresolved

                                                                                                            23 of 228
Zend Framework   ZF-11178 Validate_Hostname fails with        Bug   Resolved   Major   Cannot Reproduce
                          Transport_Smtp::helo() when using

                                                                                                          24 of 228
Zend Framework   ZF-11045 Zend_Mail_Transport_Abstract: To, Cc,      Bug   Closed   Critical   Cannot Reproduce
                          Bcc are splitted with EOL, but shouldn't

                                                                                                                  25 of 228
Zend Framework   ZF-11022 Setting resources.mail.transport.register Bug   Resolved   Critical   Fixed
                          = true causes an extra email to be sent
                          to a bogus address.

                                                                                                        26 of 228
Zend Framework   ZF-10970 Zend_Mail does not create             Patch   Open   Major   Unresolved
                          multipart/alternative messages with
                          plain+HTML where the HTML has
                          embedded images.

Zend Framework   ZF-10864 Zend_Mail with SMTP Authentication    Bug     Open   Major   Unresolved

                                                                                                    27 of 228
Zend Framework   ZF-10853 Add unit tests to                       Task                  Open       Major   Unresolved
                          Zend_Mail_Protocol_Smtp for ZF2

Zend Framework   ZF-10844 PHPUnit 3.5 code is being used on the   Unit Tests: Problem   Resolved   Major   Fixed
                          test Zend_Mail_FileTransportTest

Zend Framework   ZF-10807 Dot character is duplicated when in 73rd Bug                  Closed     Major   Not an Issue
                          position of plain text content

                                                                                                                          28 of 228
Zend Framework   ZF-10792 encode comma in from/to/cc display   Improvement   Reopened   Trivial   Unresolved

                                                                                                               29 of 228
Zend Framework   ZF-10771 SMTP Login Enable support for "you are Improvement   Open   Major   Unresolved
                          already authenticated"

                                                                                                           30 of 228
Zend Framework   ZF-10758 Support StartTLS for sending Mails via   Improvement   Open       Major   Unresolved

Zend Framework   ZF-10741 Zend_Mail_Protocol_Smtp needs unit       Patch         Resolved   Major   Fixed

                                                                                                                 31 of 228
Zend Framework   ZF-10729 Zend_Mail _formatAddress working   Bug   Resolved   Major   Fixed

                                                                                              32 of 228
Zend Framework   ZF-10710 Japanese subject garbled (mojibake) in   Bug     Open       Major   Unresolved
                          Mac Mail, Yahoo Mail for long strings

Zend Framework   ZF-10693 encoding issue                           Bug     Resolved   Major   Fixed

Zend Framework   ZF-10651 Zend_Mail tests are running twice        Patch   Resolved   Minor   Fixed

                                                                                                           33 of 228
Zend Framework   ZF-10567 Fatal error: Allowed memory size of   Bug   Closed     Minor   Not an Issue
                          134217728 bytes exhausted

Zend Framework   ZF-10528 Zend Mail not setting return path     Bug   Resolved   Minor   Duplicate

                                                                                                        34 of 228
Zend Framework   ZF-10504 Zend_Mail_Protocol_Imap::examineOrSe Bug           Open       Major   Unresolved
                          lect only returns a subset of the actual
                          server response

Zend Framework   ZF-10503 Zend_Mail::_filterName does not filter ':'   Bug   Resolved   Major   Fixed

                                                                                                             35 of 228
Zend Framework   ZF-10501 Zend_Mail_Protocol_Imap : fetch specific Bug   Open   Major   Unresolved
                          parts of message failed on Dovecot

                                                                                                     36 of 228
Zend Framework   ZF-10489 Zend_Mail_Protocol_Imap : problem to   Bug     Open       Critical   Unresolved
                          get multiline response

Zend Framework   ZF-10395 Incorrect validator class used in      Patch   Resolved   Blocker Fixed

                                                                                                            37 of 228
Zend Framework   ZF-10372 Zend_Mail_Transport_Mock             Improvement         Resolved   Minor   Fixed

Zend Framework   ZF-10367 public Zend_Mail::clearHeader()      New Feature         Resolved   Minor   Fixed

Zend Framework   ZF-10328 Zend_Mail : translation of section   Docs: Improvement   Resolved   Minor   Fixed
                          Additional Headers

                                                                                                              38 of 228
          Assignee                   Reporter       Created           Updated         Resolved
Dolf Schimmel (Freeaqingme)   Federico Gon      12/20/2012 13:27   12/28/2012 19:39

                                                                                                 39 of 228
Dolf Schimmel (Freeaqingme)   Tim Fountain   11/16/2012 17:11   11/16/2012 17:11

                                                                                   40 of 228
Frank Brückner   Nikesh Hajari   10/17/2012 15:31   10/22/2012 11:55   10/22/2012 11:55

                                                                                          41 of 228
Frank Brückner   Andi Dittrich   9/28/2012 13:14   9/28/2012 14:55   9/28/2012 14:55

                                                                                       42 of 228
Dolf Schimmel (Freeaqingme)   Eric Durand-Tremblay   7/6/2012 20:26   7/6/2012 20:26

                                                                                       43 of 228
Dolf Schimmel (Freeaqingme)   Robert   6/2/2012 7:31   6/4/2012 13:55

                                                                        44 of 228
Dolf Schimmel (Freeaqingme)   Arnold Pistorius   5/22/2012 12:28   5/22/2012 12:28

                                                                                     45 of 228
Dolf Schimmel (Freeaqingme)   Bavo Janss   3/23/2012 8:14   3/23/2012 8:14

                                                                             46 of 228
Dolf Schimmel (Freeaqingme)   brent agnew      3/17/2012 23:41   3/17/2012 23:41

Dolf Schimmel (Freeaqingme)   Glen Solsberry   3/12/2012 19:20   3/12/2012 19:20

                                                                                   47 of 228
Dolf Schimmel (Freeaqingme)   Linus R   1/6/2012 16:10   1/6/2012 16:10

                                                                          48 of 228
Dolf Schimmel (Freeaqingme)   Cédric Tailly   11/23/2011 14:09   11/23/2011 14:11

                                                                                    49 of 228
Dolf Schimmel (Freeaqingme)   interrobang   11/3/2011 8:49   11/3/2011 8:58   11/3/2011 8:58

                                                                                               50 of 228
Dolf Schimmel (Freeaqingme)   Oleg   10/31/2011 19:25   10/31/2011 19:44

                                                                           51 of 228
Dolf Schimmel (Freeaqingme)   Andy   10/2/2011 13:32   10/2/2011 13:32

                                                                         52 of 228
Ryan Mauger   jayakumar   9/22/2011 9:42   9/23/2011 7:38   9/22/2011 12:55

                                                                              53 of 228
Adam Lundrigan                Eric Holmes   9/20/2011 13:59   3/5/2012 22:40   3/5/2012 22:40

Dolf Schimmel (Freeaqingme)   Eric Holmes   9/19/2011 13:57   3/5/2012 22:40

                                                                                                54 of 228
Dolf Schimmel (Freeaqingme)   Eugene Churmanov   7/22/2011 11:57   7/22/2011 11:59

                                                                                     55 of 228
Dolf Schimmel (Freeaqingme)   Sam Bryan   7/19/2011 8:47   7/19/2011 8:47

                                                                            56 of 228
Dolf Schimmel (Freeaqingme)   Adam Kopeć   7/13/2011 12:58   7/13/2011 12:58

                                                                               57 of 228
Adam Lundrigan   Adam Lundrigan   6/29/2011 15:09   6/29/2011 15:24   6/29/2011 15:24

                                                                                        58 of 228
Dolf Schimmel (Freeaqingme)   Nawar Nory   5/13/2011 14:39   8/16/2012 19:18

                                                                               59 of 228
Marc Hodgins                  Cory Kaufman     4/24/2011 4:08   4/28/2011 6:30   4/27/2011 7:12

Dolf Schimmel (Freeaqingme)   Volker Grabsch   4/5/2011 16:04   4/5/2011 16:11

                                                                                                  60 of 228
Dolf Schimmel (Freeaqingme)   Raffael Luthiger   3/31/2011 23:46   3/31/2011 23:46

Dolf Schimmel (Freeaqingme)   Andy                3/28/2011 9:33    3/28/2011 9:35

Dolf Schimmel (Freeaqingme)   Dominik Gehl       3/23/2011 14:01   3/23/2011 14:01

                                                                                     61 of 228
Thomas Weidner   Gabriel Schuster   3/16/2011 3:06   5/15/2012 3:38   8/28/2011 20:56

                                                                                        62 of 228
Adam Lundrigan   Martin Keckeis   2/7/2011 6:20   5/17/2012 18:26   5/17/2012 18:26

                                                                                      63 of 228
Dolf Schimmel (Freeaqingme)   jsnod   2/2/2011 21:32   6/4/2011 1:11   6/4/2011 1:11

                                                                                       64 of 228
Dolf Schimmel (Freeaqingme)   Colin Guthrie    1/20/2011 6:34   9/1/2011 11:29

Dolf Schimmel (Freeaqingme)   Habeeb Raja     12/23/2010 0:29    1/5/2011 4:09

                                                                                 65 of 228
Unassigned             Marc Hodgins           12/19/2010 16:44   11/20/2012 21:37

Jeremy Postlethwaite   Jeremy Postlethwaite   12/17/2010 16:14   12/19/2010 13:15   12/17/2010 16:29

Adam Lundrigan         Aigars Gedroics         12/10/2010 3:20     6/14/2011 1:47     6/14/2011 1:47

                                                                                                       66 of 228
Dolf Schimmel (Freeaqingme)   Christoph Roensch   12/8/2010 4:58   7/11/2012 7:18

                                                                                    67 of 228
Unassigned   Wade Womersley   12/3/2010 3:15   11/20/2012 21:37

                                                                  68 of 228
Unassigned     Simon Stücher   11/30/2010 8:12   11/20/2012 21:37

Marc Hodgins   Marc Hodgins    11/24/2010 9:46   12/19/2010 16:46   12/19/2010 16:46

                                                                                       69 of 228
Dolf Schimmel (Freeaqingme)   M Lehr   11/23/2010 1:45   12/6/2010 3:34   12/6/2010 3:34

                                                                                           70 of 228
Unassigned                    Michael Langford   11/18/2010 22:05   11/20/2012 21:38

Dolf Schimmel (Freeaqingme)   Alexander           11/17/2010 4:08    12/4/2010 13:49   12/4/2010 13:49

Marc Hodgins                  Marc Hodgins         11/6/2010 1:56     11/8/2010 9:18    11/8/2010 9:18

                                                                                                         71 of 228
Christoph, René Pardon   Marvin D.        10/17/2010 8:38   10/17/2010 14:08   10/17/2010 14:08

Marc Hodgins             Robert mcCombe   10/7/2010 11:50    11/25/2010 1:49    11/25/2010 1:49

                                                                                                  72 of 228
Unassigned                    Dominik Gehl    9/29/2010 9:42   11/20/2012 21:37

Dolf Schimmel (Freeaqingme)   Richard Vidal   9/29/2010 9:18     12/6/2010 3:31   12/6/2010 3:31

                                                                                                   73 of 228
Unassigned   Vincent Clair   9/28/2010 1:08   11/20/2012 21:37

                                                                 74 of 228
Unassigned        Vincent Clair       9/23/2010 1:37   11/20/2012 21:38

Mickael Perraud   Antoine Hedgecock   8/29/2010 3:30     11/6/2010 0:24   11/6/2010 0:24

                                                                                           75 of 228
Dolf Schimmel (Freeaqingme)   Till Klampaeckel   8/23/2010 14:10    12/4/2010 14:18   12/4/2010 14:18

Marc Hodgins                  Jon Nott            8/23/2010 1:59   11/10/2010 10:04   10/26/2010 5:51

Mickael Perraud               Benoît Durand      8/17/2010 11:13    8/19/2010 12:08   8/19/2010 12:08

                                                                                                        76 of 228
         Affects Version/s   Fix Version/s               Component/s   Due Date Votes Watchers Images
1.12.0                                       Zend_Mail                              0        0

                                                                                                 77 of 228
1.12.0   Zend_Mail   0   1

                             78 of 228
Next Minor Release, Next Major Release   Zend_Mail   0   1

                                                             79 of 228
Zend_Mail, Zend_Mime   0   0

                               80 of 228
1.11.12   Zend_Mail   0   0

                              81 of 228
1.11.11   Zend_Mail   1   2

                              82 of 228
1.11.11   Zend_Mail   2   2

                              83 of 228
1.11.11   Zend_Mail, Zend_Mime   0   1

                                         84 of 228
1.11.11   Zend_Mail, Zend_Mail_Storage   0   0

1.11.11   Zend_Mail                      0   0

                                                 85 of 228
1.11.11   Zend_Mail   0   1

                              86 of 228
1.11.11   Zend_Mail, Zend_Mime   0   0

                                         87 of 228
1.11.11   Zend_Mail, Zend_Mime   0   0

                                         88 of 228
1.11.11   Zend_Mail   0   1

                              89 of 228
1.11.5   Zend_Mail   0   0

                             90 of 228
1.11.6   Zend_Mail   0   0

                             91 of 228
1.11.10   Zend_Mail   0   1

1.11.10   Zend_Mail   0   2

                              92 of 228
Zend_Mail   0   0

                    93 of 228
1.11.9   Zend_Mail   0   0

                             94 of 228
1.11.8   Zend_Mail, Zend_Mime   0   1

                                        95 of 228
1.11.7   1.11.8   Zend_Mail   0   0

                                      96 of 228
1.10.7, 1.11.6   Zend_Mail   3   1

                                     97 of 228
1.11.5   Zend_Mail, Zend_Mail_Storage   1   2

1.11.4   Zend_Mail                      0   0

                                                98 of 228
1.11.4   Zend_Mail   0   0

1.11.4   Zend_Mail   0   0

         Zend_Mail   0   1

                             99 of 228
Next Major Release   Zend_Mail, Zend_Validate   1   3

                                                        100 of 228
Zend_Mail   0   1

                    101 of 228
1.11.3   1.11.8   Zend_Application_Resource, Zend_Mail   0   0

                                                                 102 of 228
1.11.2   Zend_Mail   2   5

         Zend_Mail   1   0

                             103 of 228
         Next Major Release   Zend_Mail   0   0

1.11.1   1.11.2               Zend_Mail   0   0

1.11.1                        Zend_Mail   0   1

                                                  104 of 228
1.11.1   Zend_Mail   1   2

                             105 of 228
1.11.1   Zend_Mail   0   1

                             106 of 228
1.11.0   Next Major Release   Zend_Mail   1   2

1.11.0   1.11.2               Zend_Mail   0   0

                                                  107 of 228
1.11.0   Next Major Release   Zend_Mail   0   1

                                                  108 of 228
1.6.0, 1.6.1, 1.6.2, 1.7.0, 1.7.1, 1.7.2,                          Zend_Mail, Zend_Mime   0   1
1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.7.7, 1.7.8,
1.7.9, 1.8.0, 1.8.1, 1.8.2, 1.8.3, 1.8.4,
1.8.5, 1.9.0, 1.9.1, 1.9.2, 1.9.3, 1.9.4,
1.9.5, 1.9.6, 1.9.7, 1.9.8, 1.10.0, 1.10.1,
1.10.2, 1.10.3, 1.10.4, 1.10.5, 1.10.6,
1.10.7, 1.10.8, 1.11.0

1.10.8                                        Next Major Release   Zend_Mail              0   0

1.11.0                                        1.11.1               Zend_Mail              0   0

                                                                                                  109 of 228
1.10.7                                   Zend_Mail   0   0

1.10.4, 1.10.5, 1.10.6, 1.10.7, 1.10.8   Zend_Mail   1   2

                                                             110 of 228
1.10.8                        Zend_Mail   0   1

1.10.8   Next Major Release   Zend_Mail   0   2

                                                  111 of 228
1.10.8   Zend_Mail   0   1

                             112 of 228
1.10.8                                    Zend_Mail   0   2

Next Major Release   Next Major Release   Zend_Mail   0   1

                                                              113 of 228
Next Major Release   Zend_Mail   1   3

1.11.0               Zend_Mail   0   0

1.11.0               Zend_Mail   0   0

                                         114 of 228
Original Estimate   Remaining Estimate   Time Spent Work Ratio Sub-Tasks   Linked Issues

                                                                                           115 of 228
116 of 228
117 of 228
118 of 228
119 of 228
120 of 228
121 of 228
122 of 228
123 of 228
124 of 228
125 of 228

           126 of 228
127 of 228
128 of 228
129 of 228


           130 of 228
131 of 228
132 of 228
133 of 228
134 of 228
135 of 228
136 of 228
137 of 228
138 of 228
139 of 228

          140 of 228
141 of 228


           142 of 228
143 of 228
144 of 228

ZF-10249, ZF-10853, ZF-10758, ZF-

                                    145 of 228
146 of 228
147 of 228

          148 of 228
149 of 228
150 of 228
151 of 228
152 of 228
              Description                     Security Level   Progress Σ Progress   Σ Time Spent   Σ Remaining Estimate   Σ Original Estimate
If you have a more than 1 IP in your
server, you can't really know which IP
Zend_Mail_Protocol_Smtp will use.

Solution: Use
stream_context_set_params to set
"bindto" param

resources.mail.transport.bindto =
"xxx.xxx.xxx.xxx" ; Setting the IP or the
port to 0 will let the system choose the IP
and/or port.

class: Zend_Mail_Protocol_Smtp


// new property
protected $_bindto = null;

public function __construct($host =
'', $port = null, array $config =

                                                                                                                                      153 of 228
The HTML Email part of the Zend Mail
documentation currently 404s:

This page is linked to from the main
Zend Mail table of contents
en/zend.mail.html). I've selected 1.12 as
the affected version but I think this is a
general problem.

Comments on the Zend_Mail docs page
suggest this has been an issue for a

                                             154 of 228

I have noticed an issue when sending e-
mails the headers show up in the e-mail
itself. I looked at the EOL character used
in the Zend\Mail\Headers class (constant
EOL = \r\n) which is perfectly for
Windows, but when sending an e-mail
with this line break I get the following
output in the actual email:

Reply-To: My Test Email

From: John Doe <john@stuff.com>


When the constant is changed to \n
ONLY then the output shows up normal
(Just Hello). In other words this \r
character is causing the headers to show
up as plain text in the message body.

My suggestion is to used the PHP_EOL
constant so it is automatically adjusted
for each platform automatically.


                                             155 of 228
Sorry this is an ZF 2.0.2 Issue .. but i did
not find the link to post it within the ZF2
tracker - so please move it to the correct

= Description =
Using Zend\Mail with Zend\Mime\Part
multipart stream based content, multiple
calls of Zend\Mail\Transport\Smtp::send
results in incomplete mail transmission.
Currently, on every call of
Zend\Mail\Transport\Smtp::send the
content of each part is captured by using
Zend\Mime\Part::getContent(), but this
function directly gets the stream content
by using stream_get_contents(...). When
using Resource based content (e.g.
create by fopen) only the first readout
works. On the second call the filepointer
is pointed to the end of the file and
stream_get_contents() will return an
empty string which results in an empty
Part of the Message.

= Example =
$sendTo = array('user1@example.tld',

                                               156 of 228
This is caused by
dy() appending the text part "Content-
Disposition" headers to the message top

I think there is a conflict between the
"Content-Disposition: inline" header and
the "Content-Type: multipart/mixed;"

Here is a snipplet of code to reproduce

$transport = new

$mail = new \Zend_Mail('UTF-8');
->addTo('asdf2@asdf.com', 'ASDF2');

$attachment = $mail-

                                           157 of 228
$mail = new Zend_Mail();
$messageString = $mail-
generateMessage() throw this error
Fatal error: Call to a member function
getContent() on a non-object in
p on line 140'

                                         158 of 228
When an email address is provided to
the Zend_Mail class, it goes through the
protected _filterEmail($email) function.
This function removes illegal characters
from provided addresses to the
Zend_Mail class. It should throw an
exception if the address contains illegal
characters. The next case explains why:

A visitor (John Doe) submits a contact
form, but has accidentally entered his
email address with a comma instead of a

john,doe@example.com (instead of

The Zend_Mail class puts this addres
through the _filterEmail function, which
removes the comma:


Now the email will be sent to the wrong
email address.

Here's some code which replicates the

                                            159 of 228
When using Zend_Mail-
>getParts()) the message won't send a
proper message;
Zend_Mail_Transport_Abstract will throw
a 'No body specified' exception.
Zend_Mail stores the body parts
Zend_Mail->$_bodyHtml and Zend_Mail-
>$_bodyText separated from the other
body mime parts (Zend_Mime_Message-

the Zend_Mail_Transport_Abstract
should be able to handle mail without
Zend_Mail->$_bodyHtml and Zend_Mail-
>$_bodyText being set
the Zend_Mail->setParts() should take
into account setting Zend_Mail-
>$_bodyHtml and Zend_Mail-
>$_bodyText body parts, although this is
kind of a hilarious workaround.

                                           160 of 228
Currently there is no way to set the
connection timeout for
used in
Please provide a way of configuring this.
Additionally, it would be beneficial to
pass the error code in the exception
thrown for better logging. Here is a
proposed use of fsocketopen in

$errno = 0;
$err = '';
$this->_socket = @fsockopen($host,
$port, $errno, $errstr, $timeout);
if (!$this->_socket) {
throw new
connect to host, error $errno: $errstr");

Zend_Mail_Protocol_Abstract contains a
@shutup on 'stream_socket_client', and
throws a "generic"
Zend_Mail_Protocol_Exception 'Could
not open socket'. This is not very helpful.
In my case, it suppressed an error of
"stream_socket_client(): unable to
connect to ssl://smtp.gmail.com:465
(Unable to find the socket transport "ssl" -
did you forget to enable it when you
configured PHP?)"

                                               161 of 228
If you pass a properly folded mail header
to Zend_Mail::addHeader(), it strips all
CRLF when it calls _filterOther(). It
*sometimes* encodes the header value
(as either QP or Base64), but only if it
contains non-printable characters. So
there's a case where you have a long,
but properly-folded header, with no
special characters, but when you add it
to your Zend_Mail and send, it throws an
exception, because after stripping all the
CRLF, the header (now a single line) is >
998 chars.

Code to reproduce:



$mail = new Zend_Mail();
$foldedHeader = implode("\r\n ",
array_fill(0, 100, "a line that is not, by
itself, too long"));
Test', $foldedHeader);

                                             162 of 228

I encounter a problem sending error log
by mail in text format, these mails
countain files paths and the colon
character seems to be problematic.

A simple example :

$mail = new Zend_Mail;


The content sent is :

Date: Sat, 19 Nov 2011 05:32:14 +0100
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-
Content-Disposition: inline
MIME-Version: 1.0


The ':' character carries a

                                           163 of 228
sending email with the following three
lines have the result, that the "0" at the
end line 3 will not be send.
If i change the 0 to 1 or other char, it will
be send.
workaround: change the content transfer
encoding to other then "quoted-

$text =
'xxxxx' . "\r\n"
xxxxxxxxxxxxxxxxxxxxxxx' . "\r\n"
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx0' //.

require_once 'Zend/Mail.php';

$mail = new Zend_Mail();
$mail->setBodyText($text); // with Zend
NTABLE" the 0 at the end of content line
3 will not be send
//$mail->setBodyText($text, null,
Zend_Mime::ENCODING_8BIT); // works

                                                164 of 228
Handle correct Return-Path header when
sending emails via SMTP.

When sending email via smtp to the
postfix mail server. postfix replace
"Return-Path: " header to the

To prevent this behavior, and outputting
correct Return-Path header i wrote a
simple patch.


Smtp.php (revision )
Smtp.php (revision )
@@ -204,7 +204,7 @@

                                           165 of 228
If email header fields are encoded
separately, Zend_Mail_Part is not able to
find it.


Content-Disposition: attachment;

Trying getHeaderField('Content-
Disposition', 'filename') gives me an
empty string.

                                            166 of 228
i am new to zend framework. i am using
netbeans as IDE. when trying to use
zend mail with the following code inside
i couldn't send mail, instead sometimes i
get a blank white screen after running or
else get "An error occurred. Application
error. can any one help me in running the
following code

require_once 'Zend/Mail.php';

$smtpServer = 'smtp.gmail.com';
$username = 'me@gmail.com';
$password = 'mypassword';

$config = array('ssl' => 'tls',
'port' => 465,
'auth' => 'login',
'username' => $username,
'password' => $password);

$transport = new

                                             167 of 228
I believe I have found a bug within your
Zend Framework.

I am using ActionScript 3 , and sending
an email using Zend_mail. When I
include the line '$mail->send();' an error
occurs, saying Bad version call... This
error means there is an error on the PHP
side of things... WIthout that line, the
function works, and calls my 'success'
function in ActionScript.

I believe I have found a bug within your
Zend Framework.

I am using ActionScript 3 , and sending
an email using Zend_mail. When I
include the line '$mail->send();' an error
occurs, saying Bad version call... This
error means there is an error on the PHP
side of things... WIthout that line, the
function works, and calls my 'success'
function in ActionScript.

                                             168 of 228

I think, I found bug with setting mail's
Return-Path header when Zend_Mail
using Sendmail transport.

When I set Return-Path header, it have
no affect for sended mail - mail Return-
Path have mail agent default value. It is
right and for sending and for sending
mail with PHP mail function. For set
correct Reeturn Path, I have to set
addition_parametrs attribute to "-f

OS: Ununtu/Linux
Mail Agent: Postfix


                                            169 of 228
I started looking at Zend_Mail as a
replacement for my current mailer, but
ran into issues with encoding.

Take a simple test case:

$mail = new Zend_Mail();
$mail->setSubject("Hello world");
$mail->setBodyHtml("Hello \r\n
<i>world</i>. \r\n");
$mail->setBodyText("Hello \r\n world.

The output of which includes CRLF
sequences encoded as =0D=0A.

Content-Type: text/plain; charset=iso-
Content-Transfer-Encoding: quoted-

Hello =0D=0A world. =0D=0A

                                         170 of 228

I wonder if it is possible (or better:
expected) to include a helper method like
getDecodedHeader() or something
similar inside Zend_Mail_Part? The
alternative may be a specific method
inside Zend_Mime_Decode.

The use case is pretty simple:

I'm reading mail, fetching my message
and getting (e.g.) subject.
$subject = $message->subject;
The thing I'm getting inside $subject at
this moment is often something like


The "from" field can look also like:

These type of encodings are common

                                            171 of 228
{{Zend_Mail_Message}}, Line 76:
$this->_flags =
This just combines the supplied array
with itself then assigns to class member.
Should be:
$this->_flags = array_merge($this-
>_flags, array_combine($params['flags'],
To merge it into the member without
overwriting the pre-existing defaults.

I've marked this as trivial since
{{Zend_Mail_Message}} doesn't currently
define any default values, so overwriting
the class member doesn't have any
negative effect.

                                            172 of 228
Part.php throws an exception in case of
the optional header of "Subject" is not
seen in the list of headers of a mail file in
the Maildir type of mailboxes.

The functions of getHeader() or
headerExists() should handle this
gracefully by ignoring it all these optional
headers. Subject header is an optional
field as described in RFC 2822.

PHP Fatal error: Uncaught exception
'Zend_Mail_Exception' with message 'no
Header with Name subject or subject
found' in
Stack trace:
#1 /var/www/email/mail_parser.php(247):
#2 {main}
thrown in
/usr/share/php/Zend/Mail/Part.php on line

                                                173 of 228
When reading a message using
Zend_Mail_Storage_Imap or
Zend_Mail_Storage_Pop3, I am unable
to see any from addresses and most to
addresses. This can be seen in the raw
headers that it outputs. I don't know
enough about the underlying protocols to
debug but am happy to run tests if that
would help narrow down the cause.

Also, I know that this information is
contained in the emails (they aren't
corrupted or anything) because I was
able to connect to the same server using
IMAP in Thunderbird and view all of the
information including email addresses.

This method enables the Zend_Mail user
to actually get the real (unencoded)
content of an email part (messages,
attachments, etc).

Please review.

                                           174 of 228
I the the message mentioned above
when I am using Zend_Mail on some of
our servers.

There is a similar bug report on PEAR
about the package Mail_Mime:

I guess it will need a similar solution as
the one mentioned in this bug report.

More information about my system. It is a
CentOS 5.5 server with PHP version
5.2.17 from the testing repository of
CentOS. The file /etc/php.ini is the
standard file delivered by the OS (with
"mbstring.func_overload = 7" set).

The send method for smtp reuses an
established connection for sending mail,
but it doesn't check if the connection
timed out.

Of course this only occurs when running
a php script longterm, as in a daemon
add support for IMAP IDLE

                                             175 of 228
When sending mail through SMTP,
Transport_Smtp sets "localhost" as
default HELO.
It seems that Validate_Hostname does
not like that as it is not a "real" DNS
At least I have an entry in my translation
log that says that the message
"'%value%' does not match the expected
structure for a DNS hostname" could not
be found in locale "en".
Because of this log entry I assume that
the validator failed and threw the
corresponding error - otherwise the
Translator would never be called to
translate that message, would it?
The email, btw, is sent without any

I'm not sure if this is a bug in
Validate_Hostname or if the default
HELO for Transport_Smtp should be
changed to something else like
When setting the IP there is no error
logged, but it's not only when it's using
the default - even when setting
"localhost" explicitly in the options the
error again occurs, so I think it's a bug in

                                               176 of 228
On line 196 in
Zend_Mail_Transport_Abstract, the
header content get imploded.
$value = implode(',' . $this->EOL . ' ',

This cause my server to write the "to",
"cc", "bcc" sometimes in the "from"
section and other crazy things.

Releated to
to = "To:" address-list CRLF
cc = "Cc:" address-list CRLF
bcc = "Bcc:" [address-list / CFWS] CRLF

Where stands nowhere, that each
address needs a new line, only at the
end of complete address-list.

So right should be (like it works also for
$value = implode(',' . ' ', $content);

                                             177 of 228
When using
Zend_Mail_Transport_Sendmail via
Zend_Application_Resouce_Mail and
setting *resources.mail.transport.register
= true*, I noticed a superfluous email
being sent to a non-existent address in
my mail logs:

{noformat}Jan 30 04:30:14 myserver
postfix/local[15519]: A97C84F52B:
to=<1@mydomain.com>, orig_to=<1>,
delay=0.08, delays=0.03/0.02/0/0.03,
dsn=5.1.1, status=bounced (unknown
user: "1")
Jan 30 04:30:14 myserver
postfix/local[15523]: B4DF24F547:
to=<1@mydomain.com>, orig_to=<1>,
delay=0.02, delays=0/0.01/0/0.01,
dsn=5.1.1, status=bounced (unknown
user: "1")

The problem is that the 'register' value
gets passed into
>__construct() as part of the
$parameters array. For some reason,

                                             178 of 228

When converting a system I currently
use to one based on Zend_Mail I
discovered that it was not possible to
create a message that had two primary
parts (plain text and HTML) where the
HTML part itself was really a
multipart/related section containing the
HTML and all the images it uses. My
existing system did this, so I decided to
"make it so" with Zend_Mail.

I have patched things in a way that is
fully backwards compatible with the
current usage (I've not actually run the
unit tests but if none of the new APIs are
called the old behaviour is preserved so
I'm quite confident they will pass!).

It can be used in the following way:

$transport = new

Hi All,
I'm using Zend_Mail with SMTP
authentication. while running that
application it returns an error.(i.e,
Application Error.). If I use the same
code without SMTP authentication, its
working fine. What i need to do...


                                             179 of 228
Need to implement unit tests (see ZF-
10741) for Zend_Mail_Protocol_Smtp in
The following line of code is required in:


This is in PHPUnit 3.5, not 3.4

The dot character gets duplicated when
sending mail with the dot character in the
73rd position (in reality in the 72*N+1
position, N>0).

The code to reproduce:


$mail = new Zend_Mail();
$txt = str_repeat('X', 72);
$mail->setBodyText($txt . '.' . 'END');

                                             180 of 228
The Zend_Mail methods from(), addTo()
and addCc() take a name to be displayed
as second Parameter.
This parameter could corrupt the mail
headers if it contains comma. Example:
$mail = new Zend_Mail();
$mail->addTo('doe@example.org', 'Doe,
Now the mail would be send to
'doe@example.org' as well as
If UTF-8 and Umlaute are involved the
whole thing would pile up to something
along '=?utf-

A work around would be to pass
'Doe%2C John'.

                                          181 of 228
Just found a bug in
where if you are already authenticated
the login fails which causes emails to not
be sent. The error is in the auth()
function where after sending AUTH
LOGIN it expects a 334 response code.
Looking at the latest release that seems
to have fixed
Zend_Mail_Protocol_Abstract's issue of
not returning the full message. I decided
the best solution would be to add the
return code to the exception thrown by
_expect and catch it in Auth_Login.
h3. Zend_Mail_Protocol_Abstract
*throw new
;* -> *throw new

public function auth()
// Ensure AUTH has not already been

                                             182 of 228
Zend_Mail_Protocol_Smtp supports SSL
and TLS, but not StartTLS (see
contrstructor of

More information about StartTLS
* http://en.wikipedia.org/wiki/STARTTLS
* http://tools.ietf.org/html/rfc3207

Hi Marc

You will push to git ZF2 to after close this

Thanks advance

                                               183 of 228
If you put a string with with a comma and
special chars in the from name, the
header get screwed up.

$mail = new Zend_Mail();
'The rabbit, which is Bernd\'s best
$mailHeader = $mail->getHeaders();

echo $mailHeader['From'][0];

this will result in

From: =?ISO-8859-

the comma will not be encoded in quoted
printable and therefor, the sendername
will not be quoted so that the email client
could not recognize the whole sender

                                              184 of 228
When using Zend_Mail with a multibyte
subject over 72 characters long the
_encodeHeader function calls
function which then calls the
Zend_Mime::encodeBase64 function.

The Zend_Mime::encodeBase64 function
performs a chunk_split on the base64
encoded subject. This results in an
unreadable garbled subject (known as
mojibake in Japanese) in the Mac Mail
application and in Yahoo Web Mail.

If the chunk_split from the is removed
from the Zend_Mime::encodeBase64
function the subject is output as
expected in all Mail software.

This has occurred with UTF-8 emails.

By default there is iso-8859-1 encoding
at the constructor. And there is no way to
change it except create another class
and inherit it from Mail class and set
encoding at the new class.
So I believe the 'utf-8' encoding must be
there by default.
it's very simple to fix.

Zend_Mail tests run twice in the test
suite. Patch attached to correct this.

                                             185 of 228
I was following a tutorial from a book, I
created a contact form with
- name
- email
- textarea
- captcha
after i clicked the submit button i got this

Fatal error: Allowed memory size of
134217728 bytes exhausted (tried to
allocate 261904 bytes) in
Mail.php on line 1174

then I tried increasing my memory
limit.and restarted apache, then re-run
my app,
and i still get the same error.. to be
honest am not sure if this is a bug or it's
just me or my
I've been having problems setting the
return path of each email sent out. When
setting the from address this overrides
any changes to the return path. It seems
the return path is still being set as on one
of my mail servers one email had two
return path headers.

In the meantime I have reverted back to
version 10.8.4 which doesn't seem to
have the same problem.

I'm going to track back where the
headers are being set and I'll release a
patch if I can find the source of the

                                               186 of 228
The examineOrSelect call in
Zend_Mail_Protocol_Imap only returns a
fixed subset of attributes of the actual
server response. In particular, the very
useful UIDNEXT is not returned


When an email is sent, ':' character is not
allowed in the sender name as it is to
represent a group (rfc2822).

this code:

$this->_mail = new Zend_Mail('UTF-8');

will produce this header:

bq.From: John:Doe

And it is not correct.

I suggest to disallow ':' in _filterName

--- ZendFramework-
1.10.8/library/Zend/Mail.php 2010-01-31
10:06:00.000000000 +0100
+++ ZendFramework-

                                              187 of 228

I think there is a problem when we
request only one specific part. Actually,
there is a comparison between id
requested and id answered by imap
server. If i fetch for exemple this one on
C: 6 FETCH 19 (BODY.PEEK[1])
I get:{code}
S: * 4827313 FETCH (BODY[1]...
{code}Please notice the lack of ".PEEK".

If I look at RFC 3501
7.4.2), there is no "BODY.PEEK" listed in
the response of a fetch. So, i think
Zend_Mail_Protocol_Imap must take this
in consideration, if some Imap servers
dont answers full "BODY.PEEK".

Here is a workaround :
if ($tokens[2][0] == $items[0] ||
$tokens[2][0] ==
str_replace('BODY.PEEK[', 'BODY[',
$items[0])) {

                                               188 of 228

I have a problem with multiline send by
IMAP server. "_nextTaggedLine()"
doesn't decode it correctly.

Multiple lines are sent with something
similar to that string "{123}\n". So, if a
tagged line contains this at the end, get
next lines and add them to current one,
while there is a tagged line. Please find
here a quick patch :

public function readLine(&$tokens =
array(), $wantedTag = '*', $dontParse =
$line = $this->_nextTaggedLine($tag);

while (preg_match('/\{\d+\}\s*$/', $line))
$line = preg_replace('/\{\d+\}\s*$/', '',
$line) . $this->_nextLine();

if (!$dontParse) {
$tokens = $this->_decodeLine($line);
} else {
Line 136 in Zend\Mail\AbstractProtocol
should be


                                             189 of 228
Found the class in there:

I think it would make a great addition. :-)

Many of the things you set with public
add*() methods on a Zend_Mail object,
you can remove again using
corresponding clear*() methods, but this
isn't the case with headers.

There is the protected
Zend_Mail::_clearHeader() method, but
(unless I'm missing something) there isn't
a clear reason why this isn't safe to have
a public method for. One shouldn't have
to extend Zend_Mail just to clear a
header, when there's already methods
like clearRecipients(), clearSubject() etc.

The usage scenario where this would be
handy is when you're looping through
recipients within the same Zend_Mail
instance, changing some things (e.g.
>addTo('foo@bar.com') ), then calling
send() again. You might've also added
some custom header with addHeader()
which you then want to remove and add
*differently* for the next recipient.
Presently this is only possible by
extending Zend_Mail, or creating a new
Zend_Mail instance for each recipient
(which may get problematic if you have

                                              190 of 228
                Labels                               Tags                  Fix Version Priority
zend_mail, zend_mail_protocol_smtp   Zend_Mail, Zend_Mail_Protocol_Smtp,
                                     bind, socket

                                                                                                  191 of 228

                192 of 228
zend_mail   zend_mail

                        193 of 228
Attachments, Mail, Mime

                          194 of 228
195 of 228

            196 of 228
_filterEmail, exception, mail

                                197 of 228
198 of 228

            199 of 228
Zend_Mail, header

                    200 of 228
Zend_Mail, Zend_Mime

                       201 of 228
202 of 228
mail, smtp

             203 of 228
header,, mail

                204 of 228
mail   zend_mail

                   205 of 228
mail   actionscript, mail, mail->send()

mail   actionscript, mail, mail->send()

                                          206 of 228
mail   mail

              207 of 228
208 of 228
Zend_Mail,, Zend_Mime,, decode,

                                  209 of 228

            210 of 228
validating, zf-crteam-review   error, mail, maildir, part

                                                            211 of 228
212 of 228
Zend_Mail, mb_send_mail

                          213 of 228
214 of 228

                   215 of 228
216 of 228
217 of 228
218 of 228
FixForZF1.12, zf-caretaker-
adamlundrigan, zf-crteam-review

                                  219 of 228
220 of 228
221 of 228
222 of 228
223 of 228
224 of 228
225 of 228
226 of 228
227 of 228
228 of 228

Shared By: