[wp-trac] [WordPress Trac] #9062: Not mailing in Windows Server
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 7 08:14:16 GMT 2009
#9062: Not mailing in Windows Server
--------------------------+-------------------------------------------------
Reporter: Claor | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.8
Component: Mail | Version: 2.7
Severity: minor | Keywords: class-phpmail
--------------------------+-------------------------------------------------
There is a bug in the class-phpmailer.php that make impossible to send
mails from Windows IIS Servers.
This bug can be solved by changing same part of the code of that file.
=========Bugged part of code=========
/**
* Formats an address correctly.
* @access private
* @return string
*/
function AddrFormat($addr) {
if(empty($addr[1]))
$formatted = $addr[0];
else
{
$formatted = $this->EncodeHeader($addr[1], ‘phrase’) . ” <” .
$addr[0] . “>”;
}
return $formatted;
}
=========Corrected=========
/**
* Formats an address correctly.
* @access private
* @return string
*/
function AddrFormat($addr) {
$formatted = $addr[0];
return $formatted;
}
I attached a corrected file.
--
Ticket URL: <http://trac.wordpress.org/ticket/9062>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list