daniel-zahariev / php-aws-ses

PHP classes that interfaces Amazon Simple Email Service
307 stars 100 forks source link

message class additions #25

Closed morrow95 closed 8 years ago

morrow95 commented 8 years ago
    /**
    * The following functions reset the recipient arrays, allowing you to use the same SimpleEmailServiceMessage
    * for multiple API calls without having to reconstruct the entire email each time.
    */
    public function clearTo() {
        $this->to = array();
    }

    public function clearCC() {
        $this->cc = array();
    }

    public function clearBCC() {
        $this->bcc = array();
    }

    public function clearReplyTo() {
        $this->replyto = array();
    }

    public function clearRecipients() {
        $this->clearTo();
        $this->clearCC();
        $this->clearBCC();
        $this->clearReplyTo();
    }
    /**
    * End of added functions
    */