Page 1 of 1

more advanced E-mail notification?

Posted: Wednesday 02 December 2015 23:16
by Evelen
Hi.
I made this in domoticz to warn me if it's fire:
Image

But I want a more advanced email, and whit other info in it like this:
TO: me
SUBJECT: Fire in the badroom!

Hi.
The fire alarm in the bedroom is triggered
The temperature in the room is currently <insert temp from a sensor>.

have a nice day!
- Domoticz
Is this Posible?

Re: more advanced E-mail notification?

Posted: Thursday 03 December 2015 9:35
by ThinkPad
Not with a standard Blockly-event i'm afraid.

I think you have to create Bash-script for that. In the Bash-script you can use something like this:

Code: Select all

echo "MAILBODYHERE" | mail -s "SUBJECTHERE" -r "YOUR NAME<[email protected]>" -aFrom:[email protected] [email protected]

Re: more advanced E-mail notification?

Posted: Thursday 03 December 2015 11:52
by alfred_j_kwak
Do you need mailserver if you'd like to send mail?

Re: more advanced E-mail notification?

Posted: Thursday 03 December 2015 20:36
by rgroothuis
Why not switching over to a push notification system? Those messages are being displayed straight on your phone. An email is easy to be missed. And especially emails with "there is a fire" message you don't want to miss :D

I'm using Telegram, I really like this and can recommend it. Works perfectly.

Re: more advanced E-mail notification?

Posted: Friday 04 December 2015 14:44
by Evelen
alfred_j_kwak wrote:Do you need mailserver if you'd like to send mail?
Yep, but not necessarily your own.
Your ISP probably has a server, you can use
rgroothuis wrote:Why not switching over to a push notification system? Those messages are being displayed straight on your phone. An email is easy to be missed. And especially emails with "there is a fire" message you don't want to miss :D

I'm using Telegram, I really like this and can recommend it. Works perfectly.
Maybe, but i use push on E-Mail anyway.

Re: more advanced E-mail notification?

Posted: Friday 04 December 2015 15:11
by alfred_j_kwak
OK. I do some more reading. Here is some info about command line email in Ubuntu: http://askubuntu.com/questions/522431/h ... mmand-line

Doesn't seem too difficult. I suppose that Domoticz have something already configured for mail sending.

Re: more advanced E-mail notification?

Posted: Friday 04 December 2015 16:23
by Egregius
I would suggest a Telegram Bot. Quite easy to configure because you only need to call a URL to send a message. Almost every scripting language supports that.