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 with port 25 (old style)
#1
Hi,

 how can I set this script to send a e-mail without SSL3 ?

function mail(to, subject, message)
  -- make sure these settings are correct
    local settings = {
    -- "from" field, only e-mail must be specified here
    from = 'mailsender@server.com',
    -- smtp username
    user = 'Myuser',
    -- smtp password --> no password
    --password = '',
    -- smtp server
    server = 'inside.server.com',
    -- smtp server port
    port = 25,
    -- enable ssl, required for gmail smtp
    --secure = 'sslv23',
   
  }

BR,
Alberto
KNX Advanced Partner + Tutor
Reply
#2
It should work, log what the server reply/error is:
Code:
res, err = mail('user@example.com', 'test subject', ' test message')
log(res, err)
Reply
#3
oneshot test 18.01.2024 12:15:43
* arg: 1
* string: Could not send email:
* arg: 2
* string: 550 Requested action not taken: mailbox unavailable
* arg: 3
* string:

oneshot test 18.01.2024 12:15:43
* arg: 1
* nil
* arg: 2
* nil
KNX Advanced Partner + Tutor
Reply
#4
Are you sending a test message to a real email address or the example one from my previous post?
The communication is working fine. Sending does not complete either because of incorrect configuration in mail settings or something is wrong on the SMTP server side.
Reply
#5
I'm using a real e-mail address.
I'll check it with the IT, thanks
KNX Advanced Partner + Tutor
Reply


Forum Jump: