Is the mail applet working
Hi
I would be very grateful if someone could confirm if the mail applet is working, I used it a few years ago and it worked without any problems.
I have recently made some changes to my HAH setup and want to use the email applet again but now get an error when triggered, see below.
Any help would be much appreciated.
Kema...
xap-header
{
v=12
hop=1
uid=FF00E100
class=email
source=dbzoo.livebox.Mail
}
mail.error
{
text=Send mail failed with error code: 67
}
The return code you are getting are CURL return code you can map those numbers into some meaning from its man page:
https://curl.haxx.se/libcurl/c/libcurl-errors.html
It might well be that smtp server its using has change something preventing what use to work to now fail. From the mail.ini file is is the URL that was used: server=smtp://smtp.gmail.com:587
From a little bit of research I would say that you can only use SSL/TLS communication now.
https://stackoverflow.com/questions/10523147/what-are-the-curl-smtp-command-line-arguments-to-support-gmail-tls-starttls-vs-s
As to whether this is a simple .ini file change I'm not sure - you might be lucky.
As ever, Brett knows the detail re the inner workings of the HAH scripting.
Of course, my own HAH is still up & running (on the original Livebox platform) and working with temperature sensors to show how warm/cold it is in my basement/outside on a Joggler screen.
Uptime is around 2.5 years since the last reboot (and that was due to a glitch in our local mains supply). I should invest in an UPS.
Perhaps some 'trendier' ways to do this sort of thing these days. However, if it ain't broken ...
Also, it should be remembered that all the HAH fun began before the term 'Internet of Things' was even coined.
Derek.
Yes, mine is also still running on the original platform (2 spares in the cupboard!) It still controls quite a few remote sockets and lights. IFTTT/twitter are still pretty useful for triggering various different events. Now with Alexa voice control making for an easy interface for SWMBO to control sockets, lights etc.
The one problem I have is that the cron daemon silently dies every now and again with no warning and no output to /var/log. It even appears in the ps list sometimes but is not actually doing anything. Not enough of a problem to stop me from using this excellent project, I eventually notice and restart the daemon.
I've never really used the mail app but I fired it up and using xFx viewer tried to send an email. This was the response:
xap-header
{
v=12
hop=1
uid=FF00E100
class=email
source=dbzoo.livebox.Mail
}
mail.error
{
text=Send mail failed with error code: 56
}
This is what I tried to send
xap-header
{
v=12
hop=1
uid=FF00D800
source=dbzoo.livebox.test
target=dbzoo.livebox.Mail
class=email
}
message
{
to=a********@hotmail.com
subject=How is your lamb?
text=I'll be around for dinner tonight at 6pm
}