Logic Machine Forum
email wont send - 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 wont send (/showthread.php?tid=5900)



email wont send - PassivPluss - 27.02.2025

I get this result from a email sending. 
It takes one minute from start to result comes back, says wantread?
What does this mean?


--
 
script
    log (mail_aktiv)
    res, err = mail("ruh@tratec.no", mail_tittel, mail_aktiv )
  log(res,err)
log('mail sendt')

--

log
Event for Test mail (32/4/1) 27.02.2025 09:13:42
* string: Dette er en test av epost
Event for Test mail (32/4/1) 27.02.2025 09:14:42
* arg: 1
  * nil
* arg: 2
  * string: wantread
Event for Test mail (32/4/1) 27.02.2025 09:14:42
* string: mail sendt


RE: email wont send - admin - 27.02.2025

Which security mode and port are you using?


RE: email wont send - PassivPluss - 27.02.2025

FW 20230607

server = 'smtp.office365.com',
-- smtp server port
port = 587,
-- enable tls, required for gmail smtp sslv23 tlsv1_2
secure = 'tlsv1_2',

i have also tried --
smtp server
server = 'send.one.com',
-- smtp server port
port = 465,
-- enable tls, required for gmail smtp sslv23 tlsv1_2
secure = 'tlsv1_2',


RE: email wont send - admin - 27.02.2025

Use these settings:
Code:
-- smtp server port
port = 587,
-- enable STARTTLS
secure = 'starttls',



RE: email wont send - PassivPluss - 27.02.2025

Then I get this result

* arg: 1
* nil
* arg: 2
* string: timeout

firewall?


RE: email wont send - admin - 27.02.2025

Can be firewall. Which SMTP server are you using? smtp.office365.com should work with port 587 and starttls mode, not sure about the second SMTP server.