domoticz.email  [Solved]

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
jpr105
Posts: 6
Joined: Friday 07 June 2019 10:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

domoticz.email

Post by jpr105 »

Hello,

I use emailing in dzVents and it works perfectly.

I just found out that you can also send emails to "[email protected]" ... cool ;)
Sending to IFTTT allows you to trigger actions based on an agreed hashtag in the subject of the mail sent by domoticz.email :!:

I tested outside Domoticz and it works great!

Extract from the IFTTT applet:
Send IFTTT an email tagged
Send IFTTT an email at [email protected] with a hashtag in the subject (e.g. #IFTTT) and this Trigger fires.
THE PROBLEM IS THE HASHTAG (#) IN THE SUBJECT OF THE EMAIL

The log always sends me back
EventSystem: SendEmail, not enough parameters!
I've searched and tested in all directions to put a hash in the subject of the mail but I didn't succeed :?

Any help please ;) ?

Thanks in advance

Regards - Jean-Paul
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: domoticz.email

Post by waaren »

jpr105 wrote: Thursday 26 March 2020 12:18 Sending to IFTTT allows you to trigger actions based on an agreed hashtag in the subject of the mail sent by domoticz.email :!:
The log always sends me back
EventSystem: SendEmail, not enough parameters!
Can you try

Code: Select all

local mySubject = 'mySubject#'
domoticz.email(domoticz.utils.urlEncode(mySubject),'test','[email protected]')
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
jpr105
Posts: 6
Joined: Friday 07 June 2019 10:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: domoticz.email  [Solved]

Post by jpr105 »

Hi waaren,

Thanks a lot for your help
local mySubject = '#GreenIQPlanning'
domoticz.email(domoticz.utils.urlEncode(mySubject), Texte, '[email protected]')
This works like a charm 8-)

Regards - Jean-Paul
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest