Logic Machine Forum
email not leaving Spacelynk - "Try again" return - 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 not leaving Spacelynk - "Try again" return (/showthread.php?tid=3947)



email not leaving Spacelynk - "Try again" return - iJAF - 22.03.2022

Hi,

This is my 1st time using the email function from Spacelynk.

I have an email account just to test several systems.

I always use the SendMail tool to test the email configuration settings.

These settings are working fine:

   

OR

   


But using the same settings in Spacelynk doesn't seems to be working:

Code:
function mail(to, subject, message)
  -- make sure these settings are correct
  local settings = {
   
    from = 'xxxxxx@sapo.pt',
   
    user = 'xxxxxx@sapo.pt',
 
    password = 'xxxxxxxxxx',
   
    server = 'smtp.sapo.pt',
   
    port = 465,
   
    --secure = 'tlsv1_2',
    secure = 'sslv23',
  }

And an Event to trigger the sending of the email:

Code:
log(mail('xxxxxxx@gmail.com', 'test', 'test'))


I tried SSL and TLS in the common functions but the result is the same.

I always get the "Try again" response

Code:
* arg: 1
  * nil
* arg: 2
  * string: Try again

I tried several combinations (port 25, with no secure), but with no success unfortunately ...

Any suggestion to try ?

Thank you


RE: email not leaving Spacelynk - "Try again" return - admin - 23.03.2022

Check that you have gateway and DNS set correctly.