|
@@ 467-470 (lines=4) @@
|
| 464 |
|
$mua = 'PHP/' . phpversion(); |
| 465 |
|
|
| 466 |
|
/* Parsing headers */ |
| 467 |
|
if (!file_exists($tplf['header'])) { |
| 468 |
|
syslog(LOG_ERR, 'Sending email... template file <'.$tplf['header'].'> not found!'); |
| 469 |
|
exit; |
| 470 |
|
} |
| 471 |
|
|
| 472 |
|
$head_tmpl = file_get_contents($tplf['header']); |
| 473 |
|
$arr_tpl_vars = array('{from}','{to}','{date}','{messageID}','{mua}'); |
|
@@ 480-483 (lines=4) @@
|
| 477 |
|
|
| 478 |
|
/* Parsing body */ |
| 479 |
|
|
| 480 |
|
if (!file_exists($tplf['body'])) { |
| 481 |
|
syslog(LOG_ERR, 'Sending email... template file <'.$tplf['body'].'> not found!'); |
| 482 |
|
exit; |
| 483 |
|
} |
| 484 |
|
|
| 485 |
|
$body_tmpl = file_get_contents($tplf['body']); |
| 486 |
|
$arr_tpl_vars = array('{emailListed}','{expInterval}','{reason}'); |