Hi,
When I'm using the <cms:php> very often I have the error message ...... eval()'d code. I think that I'm missing something in the couch manual how to avoid this error. Like:
This part works ...
But when I use this ...
I get the Error !
Can someone inform me about this ?
Thanks
When I'm using the <cms:php> very often I have the error message ...... eval()'d code. I think that I'm missing something in the couch manual how to avoid this error. Like:
- Code: Select all
<cms:php>
$options = array(
'credentials' => array(
'username' => 'info@e-tukku.fi',
'password' => '****,
'host' => '****:143/novalidate-cert/',
'ssl' => true,
'folder' => 'INBOX'
),
'assetsFolder' => '../couch/uploads/attachments',
'sort' => 'date',
'limit' => 5,
);
$emailReader = new Email_Reader($options);
// This will contain (up to) the most recent 10 emails.
$inbox = $emailReader->readFolder($uId, $headersOnly = true, $saveAssets = false);
foreach ($inbox as $mailsin){ // this has to be adjusted..
echo "<div> <fieldset>";
echo "<legend> From: ";
echo $mailsin['header']['fromaddress'];
echo "</legend>";
echo "<small> $mailsin[id] - $mailsin[uId] </small>";
echo "<p>";
echo $mailsin['header']['subject'];
echo "</p>";
echo "<p class='label'>";
echo $mailsin['header']['date'];
echo "</p>";
echo "</fieldset> </div> <br/>";
}
//To view a complete list of fields within this email use print_r($mailsin);
</cms:php>
This part works ...
- Code: Select all
echo "<p>";
echo $mailsin['header']['subject'];
echo "</p>";
But when I use this ...
- Code: Select all
echo " <p>$mailsin['header']['subject']</p>";
I get the Error !
Can someone inform me about this ?
Thanks