Logic Machine Forum
Email Settings for local SNTP. - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Email Settings for local SNTP. (/showthread.php?tid=2106)



Email Settings for local SNTP. - Evens - 04.06.2019

Hi,
 
I’m wondering how to set the settings correctly for the email, the server I’m going to send an email to is on my local network. I don’t have any internet connection on this LAN. The information that I have about the server is an email address and an IP address. There is no security on this email server.
 
What is the correct way to set the settings below?


Code:
local settings = {
 -- "from" field, only e-mail must be specified here
 from = gmail_address,
 -- smtp username
 user = gmail_address,
 -- smtp password
 password = gmail_password,
 -- smtp server
 server = 'smtp.gmail.com',
 -- smtp server port
 port = 465,
 -- enable ssl, required for gmail smtp
 secure = 'sslv23',
}

BR Even Sundgot.


RE: Email Settings for local SNTP. - admin - 05.06.2019

Try these settings, change IP as needed:
Code:
local settings = {
  -- "from" field, only e-mail must be specified here
  from = gmail_address,
  -- smtp server
  server = '192.168.1.1',
  -- smtp server port
  port = 25,
}