PHP头条
热点:

给多个地址发邮件的类


<?php(做为现在的主流开发语言)  

////////////////////////////////////////////////////////////  
//   EmailClass 0.5  
//   class for sending mail  
//  
//   Paul Schreiber  
//   php(做为现在的主流开发语言)@paulschreiber.com  
//   http://paulschreiber.com/  
//  
//   parameters  
//   ----------  
//   - 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  
//  
//   example  
//   -------  
//   $m = new email ( "hello there",            // subject  
//                    "how are you?",           // message body  
//                    "paul",                   // senders name  
//                    "foo@foobar.com",         // senders email  
//                    array("paul@foobar.com", "foo@bar.com"), // To: recipients  
//                    "paul@whereever.com"      // Cc: recipient  
//                   );  
//  
//       print "mail sent, result was" . $m->send();  
//  
//  
//  

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

class email {  

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

www.phpzy.comtrue/phprm/33271.htmlTechArticle给多个地址发邮件的类 ?php (做为现在的主流开发语言) //////////////////////////////////////////////////////////// //EmailClass 0.5 //class for sending mail // //Paul Schreiber //php (做为现在的主流开发语言) @pa...

相关文章

    暂无相关文章

PHP之友评论

今天推荐