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')

Comments

danepowell’s picture

Version: 6.x-2.1 » 6.x-2.2
Status: Active » Needs review
StatusFileSize
new1.22 KB

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!

danepowell’s picture

StatusFileSize
new1.22 KB

Minor change to fix formatting

danepowell’s picture

Can 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...

danepowell’s picture

Status: Needs review » Fixed

This has been fixed in 2.x and 4.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.