Zend Framework

Zend_Application_Resource_Mail requires lowercase defaults

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.10.0
  • Fix Version/s: 1.10.0
  • Labels:
    None

Description

In docs, Zend_Application_Resource_Mail is configured as follows:

resources.mail.defaultFrom.email = john@example.com
resources.mail.defaultFrom.name = "John Doe"

However the actual code is:

$key = strtolower('default' . $type);
        $options = $this->getOptions();

        if(isset($options[$key]['email']) &&
           !is_numeric($options[$key]['email']))
        {
            $method = array('Zend_Mail', 'setDefault' . ucfirst($type));

...etc.

i.e. it expects lowercase "defaultfrom" in the options.

Activity

Hide
Dolf Schimmel (Freeaqingme) added a comment -

Issue should now be fixed. Thank you for reporting.

Show
Dolf Schimmel (Freeaqingme) added a comment - Issue should now be fixed. Thank you for reporting.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: