lua snapshot to only ONE email

Moderator: leecollings

Post Reply
tiga
Posts: 159
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

lua snapshot to only ONE email

Post by tiga »

i have set up 2 email accounts in my email setup.but in one lua script i want to send a snapshot to only ONE account.
is that even possible?

i have setup this silly test script but i can not get it to work

Code: Select all

commandArray = {}

x = uservariables["postteller"]

if devicechanged['lamp schuur'] == 'On' then
    print ("aantal poststukken:"..tostring(x))
    commandArray['SendCamera:5'] = 'er is post bezorgd.aantal poststukken:' .. tostring(x) .. '#[email protected]'

end


return commandArray
this script sends the mail to both accounts and not just [email protected]
is it possible to send it to only one email?
tiga
Posts: 159
Joined: Friday 27 May 2016 20:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: nederland
Contact:

Re: lua snapshot to only ONE email

Post by tiga »

anyone ??
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest