The AddReplyTo method should be called as described in the documention:
boolean AddReplyTo (string $address, [string $name = ''])
Currently, we are calling it like
AddReplyTo('User Name <useremail@example.org>')
This works for versions of PHPMailer prior to 5.0 but causes it to fail after that. I believe the Reply-To address should be parsed like the from address, so we can call it properly:
AddReplyTo('useremail@example.org', 'User Name')
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | messaging-548864-2.patch | 1.22 KB | danepowell |
| #1 | messaging-548864-1.patch | 1.22 KB | danepowell |
Comments
Comment #1
danepowell commentedCan anyone test this to make sure it doesn't break functionality in versions of PHPMailer prior to 5.0? It does seem to fix the issue for 5.0.
With this patch, the PHPMailer component should be fully compatible with the PHPMailer 5.x series!
Comment #2
danepowell commentedMinor change to fix formatting
Comment #3
danepowell commentedCan someone please review this? Anyway we've been using it for ages, I think it should be completely safe to commit. And like a billion issues, it needs to get ported to 4.x...
Comment #4
danepowell commentedThis has been fixed in 2.x and 4.x