Changeset 289 for trunk/trax/vendor/trax/action_mailer.php
- Timestamp:
- 05/22/07 04:04:25 (5 years ago)
- Files:
-
- 1 modified
-
trunk/trax/vendor/trax/action_mailer.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_mailer.php
r217 r289 139 139 140 140 if(!is_null($this->subject)) { 141 $this->set_header_line("Subject", $this->subject);141 $this->set_header_line("Subject", ereg_replace("[\n\r]", "", $this->subject)); 142 142 } else { 143 143 $this->set_header_line("Subject", ""); … … 224 224 $this->head_charset = $this->head_charset ? $this->head_charset : $this->default_charset; 225 225 $this->html_charset = $this->html_charset ? $this->html_charset : $this->default_charset; 226 $this->text_charset = $this->text_charset ? $this->text_charset : $this->default_charset; 227 $this->mime_params = array( 228 'head_charset' => $this->head_charset, 229 'html_charset' => $this->html_charset, 230 'text_charset' => $this->text_charset 231 ); 226 $this->text_charset = $this->text_charset ? $this->text_charset : $this->default_charset; 232 227 } 233 228 … … 241 236 //echo "calling $method_name<br>"; 242 237 call_user_func_array(array($this, $method_name), $parameters); 243 } 238 } 239 $this->mime_params = array( 240 'head_charset' => $this->head_charset, 241 'html_charset' => $this->html_charset, 242 'text_charset' => $this->text_charset 243 ); 244 244 $this->set_headers(); 245 245 $body = $this->preparse_body = $this->body; … … 258 258 $this->body = $this->mail_mime->get($this->mime_params); 259 259 $this->headers = $this->mail_mime->headers($this->headers); 260 $this->headers['Subject'] = ereg_replace("[\n\r]", "", $this->headers['Subject']);261 260 262 261 if($this->delivery_method == "sendmail") { … … 342 341 } 343 342 if(!count($this->errors)) { 344 $result = $mail->mail->send( null, $mail->headers, $mail->body);343 $result = $mail->mail->send($mail->headers['To'], $mail->headers, $mail->body); 345 344 if(is_object($result)) { 346 345 $this->errors[] = $result->getMessage();
