@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | use PHPMailer\PHPMailer\PHPMailer; |
12 | 12 | use PHPMailer\PHPMailer\Exception as PHPMailerException; |
13 | 13 | |
14 | -require MODX_MANAGER_PATH . 'includes/controls/phpmailer/Exception.php'; |
|
15 | -require MODX_MANAGER_PATH . 'includes/controls/phpmailer/PHPMailer.php'; |
|
16 | -require MODX_MANAGER_PATH . 'includes/controls/phpmailer/SMTP.php'; |
|
14 | +require MODX_MANAGER_PATH.'includes/controls/phpmailer/Exception.php'; |
|
15 | +require MODX_MANAGER_PATH.'includes/controls/phpmailer/PHPMailer.php'; |
|
16 | +require MODX_MANAGER_PATH.'includes/controls/phpmailer/SMTP.php'; |
|
17 | 17 | |
18 | 18 | /** |
19 | 19 | * Class MODxMailer |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | public function init(DocumentParser $modx) |
47 | 47 | { |
48 | 48 | $this->modx = $modx; |
49 | - $this->PluginDir = MODX_MANAGER_PATH . 'includes/controls/phpmailer/'; |
|
49 | + $this->PluginDir = MODX_MANAGER_PATH.'includes/controls/phpmailer/'; |
|
50 | 50 | |
51 | 51 | switch ($modx->config['email_method']) { |
52 | 52 | case 'smtp': |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | mb_language($this->mb_language); |
111 | 111 | mb_internal_encoding($modx->config['modx_charset']); |
112 | 112 | } |
113 | - $exconf = MODX_MANAGER_PATH . 'includes/controls/phpmailer/config.inc.php'; |
|
113 | + $exconf = MODX_MANAGER_PATH.'includes/controls/phpmailer/config.inc.php'; |
|
114 | 114 | if (is_file($exconf)) { |
115 | 115 | include($exconf); |
116 | 116 | } |
@@ -178,12 +178,12 @@ discard block |
||
178 | 178 | } |
179 | 179 | |
180 | 180 | if ($this->modx->debug) { |
181 | - $debug_info = 'CharSet = ' . $this->CharSet . "\n"; |
|
182 | - $debug_info .= 'Encoding = ' . $this->Encoding . "\n"; |
|
183 | - $debug_info .= 'mb_language = ' . $this->mb_language . "\n"; |
|
184 | - $debug_info .= 'encode_header_method = ' . $this->encode_header_method . "\n"; |
|
181 | + $debug_info = 'CharSet = '.$this->CharSet."\n"; |
|
182 | + $debug_info .= 'Encoding = '.$this->Encoding."\n"; |
|
183 | + $debug_info .= 'mb_language = '.$this->mb_language."\n"; |
|
184 | + $debug_info .= 'encode_header_method = '.$this->encode_header_method."\n"; |
|
185 | 185 | $debug_info .= "send_mode = {$mode}\n"; |
186 | - $debug_info .= 'Subject = ' . $this->Subject . "\n"; |
|
186 | + $debug_info .= 'Subject = '.$this->Subject."\n"; |
|
187 | 187 | $log = "<pre>{$debug_info}\n{$header}\n{$org_body}</pre>"; |
188 | 188 | $this->modx->logEvent(1, 1, $log, 'MODxMailer debug information'); |
189 | 189 | |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | ini_set('sendmail_from', $old_from); |
250 | 250 | } |
251 | 251 | if (!$rt) { |
252 | - $msg = $this->Lang('instantiate') . "<br />\n"; |
|
252 | + $msg = $this->Lang('instantiate')."<br />\n"; |
|
253 | 253 | $msg .= "{$this->Subject}<br />\n"; |
254 | 254 | $msg .= "{$this->FromName}<{$this->From}><br />\n"; |
255 | 255 | $msg .= mb_convert_encoding($body, $this->modx->config['modx_charset'], $this->CharSet); |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | */ |
269 | 269 | public function SetError($msg) |
270 | 270 | { |
271 | - $msg .= '<pre>' . print_r(call_user_func('get_object_vars', $this), true) . '</pre>'; |
|
271 | + $msg .= '<pre>'.print_r(call_user_func('get_object_vars', $this), true).'</pre>'; |
|
272 | 272 | $this->modx->config['send_errormail'] = '0'; |
273 | 273 | $this->modx->logEvent(0, 3, $msg, 'phpmailer'); |
274 | 274 |