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 setting
#21
(09.05.2024, 10:36)admin Wrote: What you are getting is not an error but a normal result: first return value is 1 = ok, second is nil = no error.

Hi,

Thanks. I'm not receiving the email though. See settings below. For the 'from' and 'user' field I'm using the same email adres together with the correct password, verified on "https://outlook.office.com/"

Code:
-- send an e-mail
function mail(to, subject, message)
  -- make sure these settings are correct
  local settings = {
    -- "from" field, only e-mail must be specified here
    from = 'xxxxxxxxxxxxxxxxxxxxxx',
    -- smtp username
    user = 'xxxxxxxxxxxxxxxxxxxxxx',
    -- smtp password
    password = ' xxxxxxxxxxxxxxxxxxxxxx',
    -- smtp server smtp-mail.outlook.com / smtp.office365.com
    server = 'smtp.office365.com',
    -- smtp server port
    port = 587,
     -- enable tls
    secure = 'ttlsv1_3',
    -- use STARTTLS mode
    starttls = true,
  }

When using the following log code I'm getting the message below.

Code:
res, err = mail(to, subject, message)

if not res then
  log(err)
end


* string: 535 5.7.139 Authentication unsuccessful, the request did not meet the criteria to be authenticated successfully. Contact your administrator. [LO4P123CA0481.GBRP123.PROD.OUTLOOK.COM 2024-05-09T10:33:51.352Z 08DC6E1D1ACB6079]

Is there any documentation with common tested SMTP servers? 

Thanks in advance,

Niels
Reply


Messages In This Thread
email setting - by gkentsis - 10.10.2017, 12:00
RE: email setting - by admin - 10.10.2017, 12:24
RE: email setting - by gkentsis - 10.10.2017, 19:16
RE: email setting - by admin - 11.10.2017, 07:59
RE: email setting - by gkentsis - 11.10.2017, 08:51
RE: email setting - by admin - 11.10.2017, 10:27
RE: email setting - by gkentsis - 13.10.2017, 08:12
RE: email setting - by admin - 13.10.2017, 08:45
RE: email setting - by gkentsis - 13.10.2017, 09:06
RE: email setting - by admin - 13.10.2017, 10:02
RE: email setting - by Mrinj - 17.11.2017, 18:43
RE: email setting - by Mrinj - 18.11.2017, 11:45
RE: email setting - by Clémentine - 21.11.2017, 14:36
RE: email setting - by admin - 22.11.2017, 13:00
RE: email setting - by joaodaniel.pereira - 27.03.2024, 09:27
RE: email setting - by admin - 27.03.2024, 09:29
RE: email setting - by joaodaniel.pereira - 27.03.2024, 09:47
RE: email setting - by Supersoon - 09.05.2024, 10:34
RE: email setting - by Daniel - 27.03.2024, 09:50
RE: email setting - by admin - 09.05.2024, 10:36
RE: email setting - by Supersoon - 09.05.2024, 10:51
RE: email setting - by admin - 09.05.2024, 10:55
RE: email setting - by Supersoon - 24.05.2024, 18:55

Forum Jump: