diff --git a/var/www/inc/functions.inc.php b/var/www/inc/functions.inc.php index 1ab5a0b..b373487 100644 --- a/var/www/inc/functions.inc.php +++ b/var/www/inc/functions.inc.php @@ -3,7 +3,7 @@ require_once('Mail.php'); /********************************** - + Generic functions theat may be called from many differant places */ @@ -11,20 +11,20 @@ function sendEmail($settings, $subject, $body) { $mailSettings = array( - 'host' => $settings['alertSmtp'], + 'host' => $settings['alertSmtp'], 'debug' => false, 'auth' => true, 'username' => $settings['alertSmtpUser'], 'password' => $settings['alertSmtpPwd'], 'port' => $settings['alertSmtpPort'], - + ); - + //$settings['alertDevice'] $mail = Mail::factory('smtp', $mailSettings ); - $headers = array('From'=>$settings['alertEmail'], 'Subject'=>$subject); + $headers = array('From'=>$settings['alertEmail'], 'Subject'=>$subject, 'From'=>$settings['alertSender']); $esito = $mail->send($settings['alertEmail'], $headers, $body); if (PEAR::isError($esito)) { print($esito->getMessage());}else{print "end";} } diff --git a/var/www/partials/settings.html b/var/www/partials/settings.html index 562330a..07ded55 100644 --- a/var/www/partials/settings.html +++ b/var/www/partials/settings.html @@ -88,11 +88,11 @@
Remote control shares stats with a remote server. Scripta will accept commands from the server.
Automatic recovery responds to alert events by restarting the miner. First gently, then rough.
@@ -100,7 +100,7 @@