Sending Emails with FT Optix

Home / FactoryTalk Optix / OptixEdge Advanced Edge Gateway

Description
Sending emails from your machine or process with FactoryTalk Optix. Awesome demo on how to set it up step by step from scratch.

You can find the code here:
https://github.com/xavierflorensa/FactoryTalk_Optix_sending_email

Contributed by Xavier Florensa – YouTubeLinkedInGitHub


Transcript
(00:01) Hi everybody. In this video, I will show you how to send an email from Factory Talk Optics. So, let’s see our application. And I will first of all point to my mobile phone screen showing my Gmail account. And here is the application. As soon as I start the application, the mail will be sent. Just now I close the application.
(00:43) Can start it again. Here we have our new email. So, let me explain how to do this. Uh and I have created a new blank project the standard and we just add new runtime net logic. We double click to enter into um Visual Studio Code and we just put the cursor where we want to insert code and we use this tool called the copilot that is a a chat something similar and I give some instructions.
(01:47) I need to send email or mail Gmail with hello world. mail account each time start method starts. to this method we have here on the left. So let’s make this work. This is thinking making some checkings from searches.
(02:51) Um some steps hide this. It is still working. You have to wait a little, but the result is worth it because you you don’t have to uh search a lot in the internet or manuals because you have the code here. Okay, you can accept this one doing like this. And we have here the code ready for us. Just you have to put your data here.
(03:51) Okay. And here in your password, uh you could use your Gmail account password. uh but this will not work. You have to use uh a trick that I will explain now and it’s this one. You have to go to your sender Gmail account to security and first of all activate the two factors authentication. Once this is done, you can go to app passwords to generate a new app password.
(04:38) It’s in my account.google.com app passwords. You just generate a new app for instance one and you create. And here you have you have to put this password in your field here and then this will run. Okay. So this is all. So, I hope you enjoy and this is all. Thank you very much.