04.06.2019, 16:38
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?
BR Even Sundgot.
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.