|
@@ 490-493 (lines=4) @@
|
| 487 |
|
$mua = 'PHP/' . phpversion(); |
| 488 |
|
|
| 489 |
|
/* Parsing headers */ |
| 490 |
|
if (!file_exists($tplf['header'])) { |
| 491 |
|
syslog(LOG_ERR, 'Sending email... template file <'.$tplf['header'].'> not found!'); |
| 492 |
|
exit; |
| 493 |
|
} |
| 494 |
|
|
| 495 |
|
$head_tmpl = file_get_contents($tplf['header']); |
| 496 |
|
$arr_tpl_vars = array('{from}','{to}','{date}','{messageID}','{mua}'); |
|
@@ 503-506 (lines=4) @@
|
| 500 |
|
|
| 501 |
|
/* Parsing body */ |
| 502 |
|
|
| 503 |
|
if (!file_exists($tplf['body'])) { |
| 504 |
|
syslog(LOG_ERR, 'Sending email... template file <'.$tplf['body'].'> not found!'); |
| 505 |
|
exit; |
| 506 |
|
} |
| 507 |
|
|
| 508 |
|
$body_tmpl = file_get_contents($tplf['body']); |
| 509 |
|
$arr_tpl_vars = array('{emailListed}','{expInterval}','{reason}'); |