summaryrefslogtreecommitdiff
path: root/Postman/Postman-Mail
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-08-24 22:08:56 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-08-24 22:08:56 +0000
commit59be4e796441e494f25b18ece7438dbf02442e47 (patch)
treedd893b6005411fa7621d3dd6a8ab0d5d664e75e4 /Postman/Postman-Mail
parent0c1f84b79c768e695fff224730b823517d3c5cc9 (diff)
downloadPost-SMTP-59be4e796441e494f25b18ece7438dbf02442e47.zip
security + multiple replyTo addreses
Diffstat (limited to 'Postman/Postman-Mail')
-rw-r--r--Postman/Postman-Mail/Zend-1.12.10/Mail.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/Postman/Postman-Mail/Zend-1.12.10/Mail.php b/Postman/Postman-Mail/Zend-1.12.10/Mail.php
index 67ba4b9..702add0 100644
--- a/Postman/Postman-Mail/Zend-1.12.10/Mail.php
+++ b/Postman/Postman-Mail/Zend-1.12.10/Mail.php
@@ -706,10 +706,21 @@ class Postman_Zend_Mail extends Postman_Zend_Mime_Message
throw new Postman_Zend_Mail_Exception('Reply-To Header set twice');
}
- $email = $this->_filterEmail($email);
$name = $this->_filterName($name);
$this->_replyTo = $email;
- $this->_storeHeader('Reply-To', $this->_formatAddress($email, $name), true);
+
+ if ( strpos( $email, ',' ) !== false ) {
+ $emails = explode(',', $email );
+ foreach ( $emails as $email ) {
+ $email = $this->_filterEmail($email);
+ $replyToList[] = $this->_formatAddress($email, $name);
+ }
+ } else {
+ $email = $this->_filterEmail($email);
+ $replyToList[] = $this->_formatAddress($email, $name);
+ }
+
+ $this->_storeHeader('Reply-To', implode(',', $replyToList ), true);
return $this;
}