This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Email sending do not work
#1
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:

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?
Reply


Messages In This Thread
Email sending do not work - by Tue - 20.08.2020, 09:34
RE: Email sending do not work - by admin - 20.08.2020, 09:35
RE: Email sending do not work - by Tue - 20.08.2020, 09:38
RE: Email sending do not work - by admin - 20.08.2020, 09:38
RE: Email sending do not work - by Tue - 20.08.2020, 09:41
RE: Email sending do not work - by admin - 20.08.2020, 09:42
RE: Email sending do not work - by Tue - 20.08.2020, 09:44
RE: Email sending do not work - by admin - 20.08.2020, 09:49
RE: Email sending do not work - by Tue - 20.08.2020, 09:51
RE: Email sending do not work - by Tue - 20.08.2020, 09:55
RE: Email sending do not work - by Daniel - 20.08.2020, 09:58
RE: Email sending do not work - by Tue - 20.08.2020, 09:58
RE: Email sending do not work - by Daniel - 20.08.2020, 10:04
RE: Email sending do not work - by Tue - 20.08.2020, 10:19
RE: Email sending do not work - by admin - 20.08.2020, 10:29
RE: Email sending do not work - by Tue - 20.08.2020, 10:37
RE: Email sending do not work - by Ibrahim - 20.11.2020, 15:50
RE: Email sending do not work - by Daniel - 23.11.2020, 09:55
RE: Email sending do not work - by Ibrahim - 23.11.2020, 15:44
RE: Email sending do not work - by Ibrahim - 26.11.2020, 08:04
RE: Email sending do not work - by admin - 27.11.2020, 08:27
RE: Email sending do not work - by Ibrahim - 27.11.2020, 12:39
RE: Email sending do not work - by admin - 27.11.2020, 14:43
RE: Email sending do not work - by Ibrahim - 27.11.2020, 20:13
RE: Email sending do not work - by admin - 30.11.2020, 07:35
RE: Email sending do not work - by BrentW - 24.03.2021, 00:15
RE: Email sending do not work - by admin - 24.03.2021, 09:22
RE: Email sending do not work - by BrentW - 25.03.2021, 02:32
RE: Email sending do not work - by admin - 25.03.2021, 07:14
RE: Email sending do not work - by BrentW - 06.04.2021, 04:14
RE: Email sending do not work - by admin - 06.04.2021, 05:48

Forum Jump: