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

Dane Powell - November 20, 2009 - 15:07
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

Dane Powell - November 20, 2009 - 15:23

Minor change to fix formatting

AttachmentSize
messaging-548864-2.patch 1.22 KB
 
 

Drupal is a registered trademark of Dries Buytaert.