Page 1 of 1

domoticz.email

Posted: Thursday 26 March 2020 12:18
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

Re: domoticz.email

Posted: Thursday 26 March 2020 13:05
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]')

Re: domoticz.email  [Solved]

Posted: Saturday 28 March 2020 12:05
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