Mail: fix importing PEAR libs
This commit is contained in:
parent
becb9ad366
commit
5c8e39a6b2
1 changed files with 2 additions and 2 deletions
|
@ -71,9 +71,9 @@ class Email {
|
||||||
public static function send($from, $to, $subject, $msg, $html=false, $attachments=null,
|
public static function send($from, $to, $subject, $msg, $html=false, $attachments=null,
|
||||||
$headers=null, $encoding=null, $eol=null) {
|
$headers=null, $encoding=null, $eol=null) {
|
||||||
if (!class_exists('Mail'))
|
if (!class_exists('Mail'))
|
||||||
require_once(App :: get('php_mail_path', null, 'string'));
|
require_once(App :: get('email.php_mail_path', null, 'string'));
|
||||||
if (!class_exists('Mail_mime'))
|
if (!class_exists('Mail_mime'))
|
||||||
require_once(App :: get('php_mail_mime_path', null, 'string'));
|
require_once(App :: get('email.php_mail_mime_path', null, 'string'));
|
||||||
|
|
||||||
$mail_obj = Mail::factory(
|
$mail_obj = Mail::factory(
|
||||||
App :: get('email.send_method', null, 'string'),
|
App :: get('email.send_method', null, 'string'),
|
||||||
|
|
Loading…
Reference in a new issue