Hello, I want to set up some email notifications for the plcnext. As it’s still not available on proficloud, I decided to use the ITlibrary. (https://www.plcnextstore.com/#/224) When I open the SMTP Client example, there are quite some errors. After I added the datatypes (page 44 of the PDF from the PLCnext Store), I still have some errors, see attachment. I understand that I have to create those datatypes, but what should be in the datatype? Or where am I able to find it? Arne
Hi Arne, I didn’t see any errors when using this procedure:
* Download the IT Library from the PLCnext Store. * Install the IT Library in the default location. * Copy the two libraries - IT_Library_9.pcwlx and IP_Com_9.pcwlx - from the installed location, to the default PLCnext Engineer "User Library" directory (C:\\\Users\\\Public\\\Documents\\\PLCnext Engineer\\\Libraries) * Copy the sample project from the installed location to the default PLCnext Engineer "Project" directory (C:\\\Users\\\Public\\\Documents\\\PLCnext Engineer\\\Projects). * Open the sample project from the Projects directory.The libraries defines some of the data types that you need, these should all be available when you import the libraries, and you should see all of these data types listed in the documentation for the library. Hope this helps. ~ Martin.
Installed everything again (same way), but it is fixed.
Is there an example online for this library? I have connected everything, but I’m not recieving anything. I’m not sure if something is not correct in the code or at the server…
There are examples. The examples are located in the installed library folder. The picture shows default installation folder.
Yes i noticed. I work with smtp for the first time and don’t know much about the server. Due to that I am not sure what all of the information is and if it is correct… Because I’m not recieving an email when I toggle boolean.
The function block sets the client error to true, but in the errorlog is no error, also the datarec string is not telling anything. What could be the reason?
Hi Arne
I just tried the example “ITL_9_EXA_ITL_SMTP_Client”. It works very well. My hardware AXC 2152 FW 2020.0.1 . You can have my PLCnext Engineer example, see transfer-link.
Then you only have to adjust the parameters according to your email account, see print screens marked red. Of course you also have to adjust your project and PLC IP settings. Try a Gmail account first.
I had to change a security setting on my Gmail account «allow less secure apps»
https://support.google.com/accounts/answer/6010255 Transfer-Link: Adresse: https://extrans.phoenixcontact.com/extrans2/index.jsp?id=758602720
Passwort: yxtSIDldzQ
Hi, I am using the ITL_SMTP_Client functional block for sending e-mail alerts as soon as I have a high priority alarm generated in my system. I have imported the library following all the steps mentioned in the discussion above. Now, I require help configuring the functional block. As I understand, the user-defined data types are already in-built with the SMTP_Client functional block, so for the inputs to the block, I have to create my tags using these pre-defined data types. Is that correct? Could you please share the transfer link mentioned above again as it is expired? That will be helpful. Thanks, Vivek
The program in the link was almost the same as the standard download in the store. The things that were important for me where: 1) The gateway should be your internetrouter IP. 2) The DNS IP address should be the same as your gateway. 3) Give your gmail account permission less secure acces. I used port ‘587’. Last thing you maybe are not aware of is that the target address count should be (obviously) the same as the number of addresses in your addresslist. Arne
Thanks Arne. It was helpful. It’s working now.
Hi Martin, Is it possible that you can share your example again? Thanks Andy
Hi Arne
I just tried the example “ITL_9_EXA_ITL_SMTP_Client”. It works very well. My hardware AXC 2152 FW 2020.0.1 . You can have my PLCnext Engineer example, see transfer-link.
Then you only have to adjust the parameters according to your email account, see print screens marked red. Of course you also have to adjust your project and PLC IP settings. Try a Gmail account first.
I had to change a security setting on my Gmail account «allow less secure apps»
https://support.google.com/accounts/answer/6010255 Transfer-Link: Adresse: https://extrans.phoenixcontact.com/extrans2/index.jsp?id=758602720
Passwort: yxtSIDldzQ
Hi Andy, the message that you quoted is from Toni, who has very helpfully given us his email address in his forum user name.
I am not sure if Toni is a regular reader of this forum, so perhaps you can email him directly for his example. ~ Martin.

