// set the to: recipient(s) if ( is_array($tolist) ) { $this->to = join( $tolist, "," ); } else { $this->to = $tolist; }
// set the cc: recipient(s) if ( is_array($cclist) && sizeof($cclist) ) { $this->cc = join( $cclist, "," ); } elseif ( $cclist ) { $this->cc = $cclist; }
// set the bcc: recipient(s) if ( is_array($bcclist) && sizeof($bcclist) ) { $this->bcc = join( $bcclist, "," ); } elseif ( $bcclist ) { $this->bcc = $bcclist; }
}
// send the message; this is actually just a wrapper for // php's mail() function; heck, it's php's mail function done right :-) // you could override this method to: // (a) use sendmail directly // (b) do smtp with sockets function send () { // create the headers needed by php's mail() function