#9062 closed defect (bug) (duplicate)
Not mailing in Windows Server
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 2.7 |
Component: | Keywords: | class-phpmail | |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (7)
#1
@
13 years ago
This has been mentioned elsewhere, Causing a problem with another mail server software.
Specifically, in that case, Quotations were being added AROUND the output from a function like the above.. (so it was "wordpress <wordpress@wordpress.com>"
). The way that function acts, is perfectly to spec. (Its how you see that a email is from "Joe Blogs" and not from "joe@…")
See Also: #6829 #8800
(Actually, this is surely a dupe of one of those)
#2
@
13 years ago
- Owner set to Claor
- Status changed from new to assigned
You are right, this is a dupe... And so, this is a mail server problem and not a windows problem?
#3
@
13 years ago
Its a combination between the MTA being used and the PHP code. The code you've proposed 'fixes' the problem, but only in a workaround way, by removing some functionality.
I dont have any method of testing anything myself though.. As mail simply doesnt work on my host at all(not a wordpress problem)
With corrected bug