Logic Machine Forum
email problem via sendgrid - 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 problem via sendgrid (/showthread.php?tid=5846)



email problem via sendgrid - savaskorkmaz - 15.01.2025

Hi,
Since gmail aut change, we were using sendgrid to send email and it was working wery well. But It has problem with 2024 fw and we don't know what is the problem. Here are my setting common functions.

  local settings = {
    -- "from" field, only e-mail must be specified here
    from = 'xxxxxxxxxxxxxxx@gmail.com',
    -- smtp username
    user = 'apikey',
    -- smtp password
    password = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
    -- smtp server
    server = 'smtp.sendgrid.net',
    -- smtp server port
    port = 587,
    -- enable ssl, required for gmail smtp
    secure = 'starttls',
  }

This settings is working from another smtp email sender app but it does not work on LM with FW 2024. LM has internet connection.

Can you check sendgrid with LM 2024 fw, i will be glad


RE: email problem via sendgrid - Daniel - 15.01.2025

log what the mail function returns:

Code:
res, err = mail(...)
log(res, err)



RE: email problem via sendgrid - savaskorkmaz - 15.01.2025

503 Must have valid receiver and originator
550 MIME message is missing 'From' header


RE: email problem via sendgrid - admin - 15.01.2025

https://forum.logicmachine.net/showthread.php?tid=5242