If Watt Feed goes to Zero Send Email

I realise that SwiftMailer has stopped being available via pear/pecl and we dont include as standard on the latest emonSD either. I’ve made a minor modification to the emoncms master branch to support installation of swiftmailer in the new emoncms directory structure.

The steps to get email up and running is now:

1. Install SwiftMailer, SSH into the pi or EmonScripts based system:

git -C /opt/emoncms/modules clone -b 'v5.4.8' --single-branch https://github.com/swiftmailer/swiftmailer.git

2. Set SMTP mail settings:

[smtp]
; Email address to email proccessed input values
default_emailto = ''

host = ""
; 25, 465, 587
port = ""
from_email = ''
from_name = ''
; Comment lines below that dont apply
; ssl, tls
encryption = ""
username = ""
password = ""

3. For input processing / event based email its important to set the default_emailto to the address you wish the email to be sent to.