Logic Machine Forum
mail with port 25 (old style) - 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: mail with port 25 (old style) (/showthread.php?tid=5208)



mail with port 25 (old style) - toujour - 18.01.2024

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


RE: mail with port 25 (old style) - admin - 18.01.2024

It should work, log what the server reply/error is:
Code:
res, err = mail('user@example.com', 'test subject', ' test message')
log(res, err)



RE: mail with port 25 (old style) - toujour - 18.01.2024

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


RE: mail with port 25 (old style) - admin - 18.01.2024

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.


RE: mail with port 25 (old style) - toujour - 18.01.2024

I'm using a real e-mail address.
I'll check it with the IT, thanks