• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BCC Batch Mode Destroys Email in Subsequent Batches

#2
[eluser]Steerlin[/eluser]
Hi, I've also come accross this bug

I've temporarily resolved it by changing the following code:

Code:
/**
     * Write Headers as a string
     *
     * @access    private
     * @return    void
     */
    function _write_headers()
    {
        if ($this->protocol == 'mail')
        {
            $this->_subject = $this->_headers['Subject'];
//            unset($this->_headers['Subject']);
        }

        reset($this->_headers);
        $this->_header_str = "";

        foreach($this->_headers as $key => $val)
        {
            $val = trim($val);

            if ($val != "")
            {
                $this->_header_str .= $key.": ".$val.$this->newline;
            }
        }

        if ($this->_get_protocol() == 'mail')
        {
            $this->_header_str = rtrim($this->_header_str);
        }
    }

because if you unset $this->_headers['Subject'] it won't be available for the next batch, hence only the first one works as advertised


Messages In This Thread
BCC Batch Mode Destroys Email in Subsequent Batches - by El Forum - 08-21-2009, 05:49 PM
BCC Batch Mode Destroys Email in Subsequent Batches - by El Forum - 10-20-2009, 04:17 AM
BCC Batch Mode Destroys Email in Subsequent Batches - by El Forum - 11-03-2009, 04:08 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.