Download & Extend

AddReplyTo method called with invalid parameters

Project:Messaging
Version:6.x-2.2
Component:PHPMailer
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Version:6.x-2.1» 6.x-2.2
Status:active» needs review

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!

AttachmentSize
messaging-548864-1.patch 1.22 KB

#2

Minor change to fix formatting

AttachmentSize
messaging-548864-2.patch 1.22 KB

#3

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

#4

Status:needs review» fixed

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

#5

Status:fixed» closed (fixed)

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

nobody click here