Index: trunk/core/kernel/utility/email.php =================================================================== diff -u -r3282 -r3510 --- trunk/core/kernel/utility/email.php (.../email.php) (revision 3282) +++ trunk/core/kernel/utility/email.php (.../email.php) (revision 3510) @@ -30,6 +30,7 @@ var $EmailBoundary; function kEmailMessage(){ + parent::kBase(); //$this->TextBoundary = uniqid(adodb_mktime()); $this->EmailBoundary = uniqid(adodb_mktime()); $this->LineFeed = "\n"; @@ -400,21 +401,21 @@ $send_params['recipients'] = array($this->To); // The recipients (can be multiple) $send_params['headers'] = array( - 'From: '.$this->HeadersArray['From'], // Headers - 'To: '.$this->HeadersArray['To'], - 'Subject: '.$this->HeadersArray['Subject'], - 'Content-type: '.$this->getContentType(), - $this->getBody(), - ); + 'From: '.$this->HeadersArray['From'], // Headers + 'To: '.$this->HeadersArray['To'], + 'Subject: '.$this->HeadersArray['Subject'], + 'Content-type: '.$this->getContentType(), + $this->getBody(), + ); $send_params['from'] = $this->From; // This is used as in the MAIL FROM: cmd - // It should end up as the Return-Path: header + // It should end up as the Return-Path: header $send_params['body']="\n"; if($smtp_object->connect($params) && $smtp_object->send($send_params)){ return true; - }else { - + } + else { if ( $this->Application->isDebugMode() ) { $this->Application->Debugger->appendHTML('
'.$smtp_object->debugtext.'
');