@@ 601-619 (lines=19) @@ | ||
598 | * @param string |
|
599 | * @return CI_Email |
|
600 | */ |
|
601 | public function to($to) |
|
602 | { |
|
603 | $to = $this->_str_to_array($to); |
|
604 | $to = $this->clean_email($to); |
|
605 | ||
606 | if ($this->validate) |
|
607 | { |
|
608 | $this->validate_email($to); |
|
609 | } |
|
610 | ||
611 | if ($this->_get_protocol() !== 'mail') |
|
612 | { |
|
613 | $this->set_header('To', implode(', ', $to)); |
|
614 | } |
|
615 | ||
616 | $this->_recipients = $to; |
|
617 | ||
618 | return $this; |
|
619 | } |
|
620 | ||
621 | // -------------------------------------------------------------------- |
|
622 | ||
@@ 629-646 (lines=18) @@ | ||
626 | * @param string |
|
627 | * @return CI_Email |
|
628 | */ |
|
629 | public function cc($cc) |
|
630 | { |
|
631 | $cc = $this->clean_email($this->_str_to_array($cc)); |
|
632 | ||
633 | if ($this->validate) |
|
634 | { |
|
635 | $this->validate_email($cc); |
|
636 | } |
|
637 | ||
638 | $this->set_header('Cc', implode(', ', $cc)); |
|
639 | ||
640 | if ($this->_get_protocol() === 'smtp') |
|
641 | { |
|
642 | $this->_cc_array = $cc; |
|
643 | } |
|
644 | ||
645 | return $this; |
|
646 | } |
|
647 | ||
648 | // -------------------------------------------------------------------- |
|
649 |