Mail: fix importing PEAR libs

This commit is contained in:
Benjamin Renard 2023-03-02 19:23:27 +01:00
parent becb9ad366
commit 5c8e39a6b2
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -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'),