Remove the body of the email from the log in the tmp directory to make it more readable and better compatibility with tail -f.

This commit is contained in:
markjcrane 2016-03-15 03:22:38 -06:00
parent 20aafafea8
commit 33f640ca7f
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2015
Portions created by the Initial Developer are Copyright (C) 2008-2016
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -102,7 +102,7 @@
}
else {
//get the headers
print_r($decoded[0]);
//print_r($decoded[0]);
$headers = json_decode($decoded[0]["Headers"]["x-headers:"], true);
$subject = $decoded[0]["Headers"]["subject:"];
$from = $decoded[0]["Headers"]["from:"];
@ -196,7 +196,7 @@
echo "Reply-to: ".$reply_to."\n";
echo "To: ".$to."\n";
echo "Date: ".$date."\n";
echo "Body: ".$body."\n";
//echo "Body: ".$body."\n";
//add to, from, fromname, custom headers and subject to the email
$mail->From = $smtp['from'] ;