Changeset 479 for trunk/lib/Email.inc.php
- Timestamp:
- May 3, 2014 11:09:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Email.inc.php
r478 r479 120 120 public function setParam($params) 121 121 { 122 122 $app =& App::getInstance(); 123 123 124 124 if (isset($params) && is_array($params)) { … … 147 147 public function getParam($param) 148 148 { 149 149 $app =& App::getInstance(); 150 150 151 151 if (array_key_exists($param, $this->_params)) { … … 167 167 public function setTemplate($template) 168 168 { 169 169 $app =& App::getInstance(); 170 170 171 171 // Load file, using include_path. … … 191 191 public function setString($string) 192 192 { 193 193 $app =& App::getInstance(); 194 194 195 195 if ('' == trim($string)) { … … 215 215 public function replace($replacements) 216 216 { 217 217 $app =& App::getInstance(); 218 218 219 219 // Ensure template exists. … … 252 252 public function send($to=null, $from=null, $subject=null, $headers=null) 253 253 { 254 254 $app =& App::getInstance(); 255 255 256 256 // Use arguments if provided. … … 335 335 if (ini_get('safe_mode')) { 336 336 $ret = mb_send_mail($final_to, $this->_params['subject'], $final_body, $final_headers); 337 337 } else { 338 338 $ret = mb_send_mail($final_to, $this->_params['subject'], $final_body, $final_headers, $envelope_sender_header); 339 339 } … … 366 366 public function validEmail($email) 367 367 { 368 368 $app =& App::getInstance(); 369 369 370 370 // If an array, check values recursively.
Note: See TracChangeset
for help on using the changeset viewer.