- Timestamp:
- 12/02/10 10:22:51 (18 months ago)
- Files:
-
- 1 modified
-
branches/1.5/libs/EmailFunctions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.5/libs/EmailFunctions.php
r2196 r2276 114 114 if (SMTP == 'true') { 115 115 // Only create a new smtp object if we don't already have one: 116 if (!is_object($smtp)) { 117 require_once "Mail.php"; 118 $smtp = Mail::factory('smtp', array( 119 'host' => SMTP_HOST, 120 'port' => SMTP_PORT, 121 'auth' => TRUE, 122 'username' => SMTP_USERNAME, 123 'password' => SMTP_PASSWORD 124 )); 125 } 116 require_once "Mail.php"; 117 $smtp = Mail::factory('smtp', array( 118 'host' => SMTP_HOST, 119 'port' => SMTP_PORT, 120 'auth' => TRUE, 121 'username' => SMTP_USERNAME, 122 'password' => SMTP_PASSWORD 123 )); 126 124 127 125 $mail = $smtp->send($to, $headers, $body);