~sylar-developers/sylar/dev

« back to all changes in this revision

Viewing changes to sylar/classes/common/communication/Mail.php

  • Committer: g.giusti at giano-solutions
  • Date: 2008-05-29 17:03:55 UTC
  • Revision ID: g.giusti@giano-solutions.com-20080529170355-7as0xn2vadfpkndl
Some bugs fixed

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
                        // check and set email type
128
128
                        $this->setMailType($sMailType);
129
129
                        
 
130
                        // Empty array
 
131
                        $this->setSend_To(array());
 
132
                        $this->setSend_CC(array());
 
133
                        $this->setSend_BCC(array());
 
134
                        
130
135
                        // check and set eventually Sender Address
131
136
                        if(!is_null($sFrom)){
132
137
                                $this->setFrom($sFrom);
511
516
         */     
512
517
        private function provideHtmlHeader($sCharSet=null){
513
518
                try{
514
 
                        $header ="";
 
519
                        
 
520
                        $header =       "MIME-Version: 1.0\r\n".
 
521
                                                "Content-type: text/html; charset={$sCharSet}\r\n";
515
522
                        
516
523
                        // blocking problem
517
524
                        if($this->isEmpty($this->getSend_To())){
546
553
                        if(is_null($sCharSet)){
547
554
                                $sCharSet = Sylar_ConfigBox::getDefaultCharset();
548
555
                        }
549
 
                        
550
 
                        $header .=      "MIME-Version: 1.0\r\n".
551
 
                                                "Content-type: text/html; charset={$sCharSet}\r\n";
552
 
                        
 
556
                                                
553
557
                        return $header;
554
558
                        
555
559
                }catch (ExceptionInSylar $ex){