Changeset 873 for trunk/Modules/EmailQueue/EmailQueue.php
- Timestamp:
- Apr 6, 2020, 11:17:40 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/EmailQueue/EmailQueue.php
r738 r873 11 11 $Output = $this->System->ModuleManager->Modules['EmailQueue']->Process(); 12 12 $Output = $this->SystemMessage('Zpracování fronty emailů', 'Nové emaily byly odeslány').$Output; 13 return ($Output);13 return ($Output); 14 14 } 15 15 } … … 79 79 'Subject' => $Subject, 'Content' => $Content, 'Time' => 'NOW()', 80 80 'From' => $From); 81 if ($AttachmentFileId != '') $Values['AttachmentFile'] = $AttachmentFileId;81 if ($AttachmentFileId != '') $Values['AttachmentFile'] = $AttachmentFileId; 82 82 $this->Database->insert('EmailQueue', $Values); 83 83 } … … 87 87 $Output = ''; 88 88 $DbResult = $this->Database->select('EmailQueue', '*', 'Archive=0'); 89 while ($DbRow = $DbResult->fetch_assoc())89 while ($DbRow = $DbResult->fetch_assoc()) 90 90 { 91 91 $Mail = new Mail(); … … 95 95 $Mail->AddBody(strip_tags($DbRow['Content']), 'text/plain'); 96 96 $Mail->AddBody($DbRow['Content'], 'text/html'); 97 if ($DbRow['AttachmentFile'] != '')97 if ($DbRow['AttachmentFile'] != '') 98 98 { 99 99 $DbResult2 = $this->Database->select('File', '*', 'Id='.$DbRow['AttachmentFile']); 100 while ($File = $DbResult2->fetch_assoc())100 while ($File = $DbResult2->fetch_assoc()) 101 101 $Mail->AttachFile($this->Config['Web']['FileRootFolder'].$File['DrivePath'], $File['MimeType']); 102 102 } … … 106 106 $Output .= 'To: '.$DbRow['To'].' Subject: '.$DbRow['Subject'].'<br />'; 107 107 } 108 return ($Output);108 return ($Output); 109 109 } 110 110 }
Note:
See TracChangeset
for help on using the changeset viewer.