Skip to content

Commit

Permalink
Merge pull request PHPMailer#182 from tyler-king/public-address-methods
Browse files Browse the repository at this point in the history
Public methods to access addresses
  • Loading branch information
Synchro committed Feb 9, 2014
2 parents 06db84b + 02c3e04 commit 338dd08
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions class.phpmailer.php
Expand Up @@ -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
Expand Down

0 comments on commit 338dd08

Please sign in to comment.