20.08.2020, 09:34
Hello There
I'm new to this forum, and also a littel new to scripting in luna.
I have a Schneider HomeLynk with Wiser for KNX on. I'm trying some very simple thinks regarding sending Email. but I seams to have no luck getting ANY mail send what so ever.
I have now mad a new Gmail accound, and on that on enabled "allow acces for less secure apps" and changed nothing else than that on Gmail side
in script I have changed this to my new settings i common functions:
And in my triggered function i have this:
But nothing comes to my Emil, how do I debug that? and any good ideas what to do?
I'm new to this forum, and also a littel new to scripting in luna.
I have a Schneider HomeLynk with Wiser for KNX on. I'm trying some very simple thinks regarding sending Email. but I seams to have no luck getting ANY mail send what so ever.
I have now mad a new Gmail accound, and on that on enabled "allow acces for less secure apps" and changed nothing else than that on Gmail side
in script I have changed this to my new settings i common functions:
Code:
local settings = {
-- "from" field, only e-mail must be specified here
from = 'MYEMAIL@gmail.com',
-- smtp username
user = 'MYEMAIL@gmail.com',
-- smtp password
password = 'MYCODE',
-- smtp server
server = 'smtp.gmail.com',
-- smtp server port
port = 465,
-- enable ssl, required for gmail smtp
secure = 'sslv23',
}
And in my triggered function i have this:
Code:
-- make sure mail settings are set in user function library before using this function
subject = 'There is new mail'
message = 'Med Venlig Hilsen Kastaniely'
mail('TEST@InoDes.dk', subject, message)
But nothing comes to my Emil, how do I debug that? and any good ideas what to do?