diff options
author | Jos Poortvliet <jospoortvliet@gmail.com> | 2020-12-09 13:53:36 +0300 |
---|---|---|
committer | Jos Poortvliet <jospoortvliet@gmail.com> | 2020-12-09 13:53:36 +0300 |
commit | 44959bf965b678fca2c4f7751aed3ac30909483d (patch) | |
tree | 6855e85ef13d6b12ac992571ca8ce6a6ab72b65d /page-whitepaper-submit.php | |
parent | bdbacdbb644f50640f04a22b5b5464080aef8a56 (diff) |
Disable logging, no need
Signed-off-by: Jos Poortvliet <jospoortvliet@gmail.com>
Diffstat (limited to 'page-whitepaper-submit.php')
-rw-r--r-- | page-whitepaper-submit.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/page-whitepaper-submit.php b/page-whitepaper-submit.php index 416018af..0fab97cf 100644 --- a/page-whitepaper-submit.php +++ b/page-whitepaper-submit.php @@ -82,14 +82,14 @@ try { $headers = "From: ".$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . 'Content-Type: text/plain; charset=UTF-8'."\r\n"; -// store in log - $data = [ - 'to' => $email_to, - 'subject' => $email_subject, - 'message' => $email_message, - 'headers' => $headers, - ]; - file_put_contents('/var/log/whitepapers.txt', json_encode($data) . PHP_EOL, FILE_APPEND | LOCK_EX); +// store in log (we could enable this for debugging but it is otherwise not really useful so let's keep it off) +// $data = [ +// 'to' => $email_to, +// 'subject' => $email_subject, +// 'message' => $email_message, +// 'headers' => $headers, +// ]; +// file_put_contents('/var/log/whitepapers.txt', json_encode($data) . PHP_EOL, FILE_APPEND | LOCK_EX); // Send the email @mail($email_to, $email_subject, $email_message, $headers); |