Skip to content

Commit

Permalink
pdf export shall container the header information (#178)
Browse files Browse the repository at this point in the history
Signed-off-by: Janos SUTO <sj@acts.hu>
  • Loading branch information
jsuto authored Sep 3, 2024
1 parent 3801d2b commit 1651c21
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions webui/controller/message/pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ public function index(){
$fp = fopen(DIR_BASE . 'tmp/' . $tmpname, "w+");
if($fp) {
fwrite($fp, "<html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" /></head><body>");

fwrite($fp, '<strong>' . $this->data['message']['subject'] . '</strong><br />');
fwrite($fp, '<strong>' . $this->data['message']['from'] . '</strong><br />');
fwrite($fp, '<strong>' . $this->data['message']['to'] . '</strong><br />');
fwrite($fp, '<strong>' . $this->data['message']['date'] . '</strong><br />');

if(strlen($this->data['message']['cc']) > 6) {
fwrite($fp, '<strong>' . $this->data['message']['cc'] . '</strong><br />');
}

fwrite($fp, '<hr />');

fwrite($fp, $this->data['message']['message']);

foreach($images as $img) {
Expand Down

0 comments on commit 1651c21

Please sign in to comment.