欢迎光临第一亲子网

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

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

导读: 牋牋牋function email ( $subject, $message, $senderName, $senderEmail, $toList, $ccList=0, $bccList=0, $replyTo=0) {牋 牋牋牋牋牋牋牋牋$this->sender = $senderName . " ";牋 牋牋牋牋牋牋牋牋$this->replyTo = $replyTo;牋 牋牋牋牋牋牋牋牋$this->subject = $...

牋牋牋function email ( $subject, $message, $senderName, $senderEmail, $toList, $ccList=0, $bccList=0, $replyTo=0) {牋
牋牋牋牋牋牋牋牋$this->sender = $senderName . " <$senderEmail>";牋
牋牋牋牋牋牋牋牋$this->replyTo = $replyTo;牋
牋牋牋牋牋牋牋牋$this->subject = $subject;牋
牋牋牋牋牋牋牋牋$this->message = $message;牋

牋牋牋牋牋牋牋牋// 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($bccLis

上一页 1234下一页

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

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