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.

mail settings
#1
Hi,

trying different variants - something not working. I need send mails from internal local network. IT prepared E-mail for me.

I should use SMTP - port 25, no security, no password. How to switch security off??

My settings:

function mail(to, subject, message)
  -- make sure these settings are correct
  local settings = {
    -- "from" field, only e-mail must be specified here
    from = 'server@company.lv',
    -- smtp username
    user = 'server@company.lv',
    -- smtp password
    password = '',
    -- smtp server
    server = 'IP adress',
    -- smtp server port
    port = 25,
    -- enable tls, required for gmail smtp
    secure = ''
  }


BR,

Alex
Reply
#2
Remove the complete fields that you don’t need instead of “”
Reply
#3
Thank you Erwin for explanation.

Alex
Reply
#4
Erwin,

thank you again for your explanations, all is working now.

Alex
Reply


Forum Jump: