Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Send_email Codesys V3.5

Dyno
2020-12-26
2024-01-31
  • Dyno - 2020-12-26

    Hi all, I'm trying to configure the Send_Mail (FB) function, but I'm not having any results.
    Could someone please send me an example.
    Thanks in advance.
    Dyno

     
  • TimvH

    TimvH - 2020-12-29

    First of all this depends on the mail server you are using. Does this need TLS? If yes, then your controller also should support this. Check with your device vendor if this is supported.

    If it is a Microsoft based mail server (smtp.office365.com), then it probably will not work, as this needs STARTTLS, but this is not supported by the mail library.

    If you are trying to connect to a Google mail server (gmail), then check the 2 factor authorization work-around. See https://kinsta.com/knowledgebase/free-smtp-server/ for a possible solution which also can work for CODESYS controllers.

    If the controller doesn't support TLS, or you need to use STARTTLS, then a mail relay server might be a solution: https://sourceforge.net/projects/emailrelay/.

     
    πŸ‘
    1
  • jamil - 2024-01-31

    Hello Guys
    Where can I find the library of Send_Mail (FB)

     
  • jamil - 2024-01-31

    Hello Guys
    Where can I find the library of Send_Mail (FB)

     

Log in to post a comment.