Skip to content

Commit aff7dc0

Browse files
committed
attachment added
1 parent c0dab75 commit aff7dc0

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
14.1 KB
Binary file not shown.
14.1 KB
Binary file not shown.

src/Template/Mails/view.ctp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<button><?= $this->Html->link(__('Back'), $this->request->referer()) ?></button>
2+
<div>
3+
<span>
4+
<?=$mailbody['body']?>
5+
</span>
6+
<?php
7+
if(isset($mailbody['attachment'])){
8+
$this->Html->link('Link text', ROOT."/attachments/".$mailbody['attachment'],array('download'=>$mailbody['attachment']));
9+
}
10+
?>
11+
</div>

0 commit comments

Comments
 (0)