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 @@

Mining

- + - +

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 @@

Mining

Donation donates a couple of mining minutes to the Scripta project.

- +
@@ -140,30 +140,30 @@

Remote control

- -

Donate

+ +

Donate

-
-
- -
- -

- Please donate! -

-
-
-
- +
+
+ +
+ +

+ Please donate! +

+
+
+
+

E-mail alerts

@@ -171,26 +171,32 @@

E-mail alerts

-
+
+
+ +
+ +
+

Please choose your own SMTP server ip address.

-
+

Please choose your own SMTP server port.

-
+
@@ -208,7 +214,7 @@

E-mail alerts

- +