AddReplyTo method called with invalid parameters
Dane Powell - August 14, 2009 - 00:33
| Project: | Messaging |
| Version: | 6.x-2.2 |
| Component: | PHPMailer |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
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')

#1
Can 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!
#2
Minor change to fix formatting