
vi /root/sendmail.php#!/usr/bin/php
<?php
//The message
$message= "UPS Sends DS in Safemode";
// if message has more than 70 characters, then you should use wordwrap()
// $message= wordwrap($message, 70);
// Send
mail('user@yourdomain.com', 'DS->UPS', $message);
?>
chmod +x /root/sendmail.phpvi /usr/syno/bin/synoupsSYSLOG "UPS going to stop all services and umount all volumes."killall -9 mplayerSYSLOG "SSC send mail"
./root/sendmail.phpSYSLOG "UPS going to stop all services and umount all volumes."
SYSLOG "SSC send mail"
./root/sendmail.php
killall -9 mplayer



Montago wrote:I've setup my Diskstation to send notification emails when serious events occur...
I've also set it up to backup to a local drive every day at 00:00:00 AM
I find it rather unnecessary to receive an email saying that the backup has completed successfully...
need settings ! - coz i dont want to turn off email notification - they are nice when good times turn bad









Return to Feature Requests & Product Improvement Suggestions
Users browsing this forum: No registered users and 4 guests