欢迎光临第一亲子网

给多个地址发邮件的类

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

导读: ...

PHP牋

////////////////////////////////////////////////////////////牋
//牋燛mailClass 0.5牋
//牋燾lass for sending mail牋
//牋
//牋燩aul Schreiber牋
//牋PHP@paulschreiber.com牋
//牋爃ttp://paulschreiber.com/牋
//牋
//牋爌arameters牋
//牋----------牋
//牋- subject, message, senderName, senderEmail and toList are required牋
//牋- ccList, bccList and replyTo are optional牋
//牋- toList, ccList and bccList can be strings or arrays of strings牋
//牋牋(those strings should be valid email addresses牋
//牋
//牋爀xample牋
//牋-------牋
//牋$m = new email ( "hello there",牋牋牋牋牋牋// subject牋
//牋牋牋牋牋牋牋牋牋牋"how are you?",牋牋牋牋牋// message body牋
//牋牋牋牋牋牋牋牋牋牋"paul",牋牋牋牋牋牋牋牋牋// sender's name牋
//牋牋牋牋牋牋牋牋牋牋"foo@foobar.com",牋牋牋牋// sender's email牋
//牋牋牋牋牋牋牋牋牋牋array("paul@foobar.com", "foo@bar.com"), // To: recipients牋
//牋牋牋牋牋牋牋牋牋牋"paul@whereever.com"牋牋牋// Cc: recipient牋
//牋牋牋牋牋牋牋牋牋);牋
//牋
//牋牋牋爌rint "mail sent, result was" . $m->send();牋
//牋
//牋
//牋

if ( ! defined( 'MAIL_CLASS_DEFINED' ) ) {牋
牋牋牋牋define('MAIL_CLASS_DEFINED', 1 );牋

class email {牋

牋牋牋牋// the constructor!牋

1234下一页

上一篇:用PHP调用数据库的存贮过程!

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