From 02c3e0420e9f3ca8e87aec84b45d1f1c1cd86282 Mon Sep 17 00:00:00 2001 From: Tyler King Date: Fri, 7 Feb 2014 14:52:48 -0330 Subject: [PATCH] Added public methods to access 'to', 'bcc', 'all_recipients' and 'ReplyTo' properties for reading. --- class.phpmailer.php | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/class.phpmailer.php b/class.phpmailer.php index 391d4b3db..8f461f0dd 100644 --- a/class.phpmailer.php +++ b/class.phpmailer.php @@ -3274,6 +3274,56 @@ public function DKIM_Add($headers_line, $subject, $body) return $dkimhdrs . $signed . "\r\n"; } + /** + * Allows for public read access to 'to' property. + * @access public + * @return array + */ + public function getToAddresses() + { + return $this->to; + } + + /** + * Allows for public read access to 'cc' property. + * @access public + * @return array + */ + public function getCcAddresses() + { + return $this->cc; + } + + /** + * Allows for public read access to 'bcc' property. + * @access public + * @return array + */ + public function getBccAddresses() + { + return $this->bcc; + } + + /** + * Allows for public read access to 'ReplyTo' property. + * @access public + * @return array + */ + public function getReplyToAddresses() + { + return $this->ReplyTo; + } + + /** + * Allows for public read access to 'all_recipients' property. + * @access public + * @return array + */ + public function getAllRecipientAddresses() + { + return $this->all_recipients; + } + /** * Perform a callback. * @param bool $isSent