I replace in function mg_send_mail
Code: Select all
$message = str_replace('<GRAPH>', "<br><br><img src='cid:$cid'>", $message);
Code: Select all
$message .= "<img src='cid:$cid'>";
Moderators: Developers, Moderators
Code: Select all
$message = str_replace('<GRAPH>', "<br><br><img src='cid:$cid'>", $message);
Code: Select all
$message .= "<img src='cid:$cid'>";
Great find! Works for me using MSExchangeblmcmb wrote:Hi,
I replace in function mg_send_mailbyCode: Select all
$message = str_replace('<GRAPH>', "<br><br><img src='cid:$cid'>", $message);
and it works fine now....Code: Select all
$message .= "<img src='cid:$cid'>";
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Don't agree.blmcmb wrote:Hi,
I replace in function mg_send_mailbyCode: Select all
$message = str_replace('<GRAPH>', "<br><br><img src='cid:$cid'>", $message);
and it works fine now....Code: Select all
$message .= "<img src='cid:$cid'>";
Code: Select all
}
} elseif ($item['item_type'] == NECTAR_ITEM_TEXT) {
Code: Select all
}
$message .= "<p align='" . $alignment[$item["align"]] . "' ><GRAPH></p>";
} elseif ($item['item_type'] == NECTAR_ITEM_TEXT) {
Code: Select all
if (is_array($data_array) && !empty($data_array) && strstr($message, '<GRAPH>') !==0) {
Code: Select all
if (is_array($data_array) && !empty($data_array) && strstr($message, '<GRAPH>') ) {
Code: Select all
$message = str_replace('<GRAPH>', "<br><br><img src='cid:$cid'>", $message);
Code: Select all
08/01/1970 07:00:00 - Thursday
15/01/1970 19:00:00 - Thursday
23/01/1970 07:00:00 - Friday
30/01/1970 19:00:00 - Friday
07/02/1970 07:00:00 - Saturday
14/02/1970 19:00:00 - Saturday
22/02/1970 07:00:00 - Sunday
01/03/1970 19:00:00 - Sunday
09/03/1970 07:00:00 - Monday
16/03/1970 19:00:00 - Monday
24/03/1970 07:00:00 - Tuesday
31/03/1970 19:00:00 - Tuesday
08/04/1970 07:00:00 - Wednesday
15/04/1970 19:00:00 - Wednesday
Tried all of the above, but unfortunately still not working with postfix. THOLD seems to work just fine.tontonitch wrote:Hi,
Hereunder a fix for the nectar_functions.php file (nectar 0.11):
Sorry for the line numbers, I added some debug lines so it could not match on the original file.
about line 322:
changetoCode: Select all
} } elseif ($item['item_type'] == NECTAR_ITEM_TEXT) {
Also correct the following line (about line 484) as the function strstr returns TRUE or FALSE:Code: Select all
} $message .= "<p align='" . $alignment[$item["align"]] . "' ><GRAPH></p>"; } elseif ($item['item_type'] == NECTAR_ITEM_TEXT) {
changetoCode: Select all
if (is_array($data_array) && !empty($data_array) && strstr($message, '<GRAPH>') !==0) {
Keep the line previously discussed (about line 492):Code: Select all
if (is_array($data_array) && !empty($data_array) && strstr($message, '<GRAPH>') ) {
That should fix the problem, and keep the image position property working (left/right/center the image)Code: Select all
$message = str_replace('<GRAPH>', "<br><br><img src='cid:$cid'>", $message);
I still have a problem on Lotus Notes, where the images are not found. It may be related to the ids of the inline attached images, containing a "@". It still needs some investigations. If anyone has an idea...
Anyway, nice plugin, well done Gandalf!
Cheers,
Yannick
:edit: Lotus Notes problem fixed, as inline png are not supported before lotus notes 8.5. jpeg and gif are well supported.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
Please post a screenshot of the report settings. I'm not aware of using PHP stuff not available on windows ...zoemu wrote:Hi:
I have Nectar installed properly but whebn creating email report to be sent the following dates are being display on upcoming events 1970 ???
Mi cacti is installed on Windows......Code: Select all
08/01/1970 07:00:00 - Thursday 15/01/1970 19:00:00 - Thursday 23/01/1970 07:00:00 - Friday 30/01/1970 19:00:00 - Friday 07/02/1970 07:00:00 - Saturday 14/02/1970 19:00:00 - Saturday 22/02/1970 07:00:00 - Sunday 01/03/1970 19:00:00 - Sunday 09/03/1970 07:00:00 - Monday 16/03/1970 19:00:00 - Monday 24/03/1970 07:00:00 - Tuesday 31/03/1970 19:00:00 - Tuesday 08/04/1970 07:00:00 - Wednesday 15/04/1970 19:00:00 - Wednesday
Users browsing this forum: No registered users and 0 guests