欢迎光临第一亲子网

给多个地址发邮件的类(3)

2013-9-2 | 来源:第一亲子网 | 点击:

导读: t) && sizeof($bccList) ) {牋 牋牋牋牋牋牋牋牋牋牋牋牋$this->bcc = join( $bccList, "," );牋 牋牋牋牋牋牋牋牋} elseif ( $bccList ) {牋 牋牋牋牋牋牋牋牋牋牋牋牋$this->bcc = $bccList;牋 牋牋牋牋牋牋牋牋}牋 牋牋牋牋}牋 牋牋牋牋// send the message; ...

t) && 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牋

牋牋牋牋牋牋牋牋// sender牋
牋牋牋牋牋牋牋牋$this->headers = "From: " . $this->sender . " ";牋

牋牋牋牋牋牋牋牋// reply-to address牋
牋牋牋牋牋牋牋牋if ( $this->replyTo ) {牋
牋牋牋牋牋牋牋牋牋牋牋牋$this->headers .= "Reply-To: " . $this->replyTo . " ";牋
牋牋牋牋牋牋牋牋}牋

牋牋牋牋牋牋牋牋// Cc: recipient(s)牋
牋牋牋牋牋牋牋牋if ( $this->cc ) {牋
牋牋牋牋牋牋牋牋牋牋牋牋$this->headers .= "Cc: " . $this->cc . " &quo

上一页1234下一页

上一篇:给多个地址发邮件的类(2)

下一篇:给多个地址发邮件的类(4)