config = $config; } public function setFrom($email) { $this->guts['from'] = $email; return $this; } public function addReplyTo($email) { $this->guts['reply-to'] = $email; return $this; } public function addTos(array $emails) { foreach ($emails as $email) { $this->guts['tos'][] = $email; } return $this; } public function addCCs(array $emails) { foreach ($emails as $email) { $this->guts['ccs'][] = $email; } return $this; } public function addHeader($header_name, $header_value) { $this->guts['headers'][] = array($header_name, $header_value); return $this; } public function setBody($body) { $this->guts['body'] = $body; return $this; } public function setSubject($subject) { $this->guts['subject'] = $subject; return $this; } public function setIsHTML($is_html) { $this->guts['is-html'] = $is_html; return $this; } public function supportsMessageIDHeader() { return $this->config['supportsMessageIDHeader']; } public function send() { $this->guts['did-send'] = true; return true; } public function getGuts() { return $this->guts; } }