fix attaching file into email
This commit is contained in:
1 parent
1d300bf3a3
commit
797ff1a5bd
1 file changed
+2
-2
+2
-2
@@ -251,8 +251,8 @@ function getOS() {
|
||||
';
|
||||
|
||||
// прикрепляем лог, если он есть
|
||||
if(isset($file) and !empty($file) and file_exists($_SERVER['DOCUMENT_ROOT'] . '/' . $file)){
|
||||
$mail->addFile($_SERVER['DOCUMENT_ROOT'] . '/' . $file);
|
||||
if(isset($file) and !empty($file) and file_exists($file)){
|
||||
$mail->addFile($file);
|
||||
}
|
||||
$mail->send();
|
||||
|
||||
|
||||
Reference in new issue
Block a user