The NI SystemLink Server Configuration has a page for SMTP on the NI Skyline Service Manager. I've set this up and am not trying to figure out how to use email alerts. What parts of SystemLink can send emails/alerts? To whom do the alerts get sent?
I am happy to see that you were able to configure the alarms and emails already, just for reference while I was researching to get some more insight for this I came into this document that might be useful just in case. How were you configuring these emails and alarms? Were you seeing alarms at least of none of those are working?
Maybe testing with the firewall down could be a nice try, if that doesn't work, could you share some more details of the current configuration that you have for your NI Web Server Configuration?
I'll respond to this when I can.
In the meantime, I'd like to request a feature where I can easily send a test email, to verify that my SMTP/Email settings are correctly configured. I'd like to be able to do that independently of the alarms feature. It would probably make sense to put this feature in the Skyline SMTP settings configuration page.
I am also facing the same issue. I have configured the SMTP details, but I am not getting any mail when the alarm becomes active.
I have used the same SMTP details and tested using LabVIEW SMTP APIs and I am able to send mail.
Please let me know what I am missing here.
I agree that we could really use an option to send a test email. I found it difficult to setup the first time as well. Here are a few suggestions.
If you are using Gmail, you will need to disable 2 factor authorization. With 2 factor disabled, these are the settings that worked for me.
Also, you can see a little more information if you use Trace Logger on the server. To do so, open a command prompt as Administrator on the server and navigate to c:\Program Files\National Instruments\Shared\Skyline. Then run "NationalInstruments.Tlog.exe enable Smtp.*" followed by "NationalInstruments.Tlog.exe tail".
Here is what it looks like when everything is working.
Here is what it looks like when it isn't working. In this case, I have 2 factor enabled.
I would take a look at the SystemLink Server log. It can contain any issues that were encountered when trying to send the email. When I was playing around with it, I was using the Google SMTP server and there was some security settings on my gmail that were preventing my server from using the SMTP server.
The log that we are looking for is at C:\ProgramData\National Instruments\Skyline\Logs\log.txt. If you have trouble looking through that log you can post it here or DM me and I can take a look at it.
Thank You Joshua and GreyGrey,
I turned off my two-factor authentication and tried the "NationalInstrumets.Tlog.exe tail" command. I got the below error. From my understanding, this error is different from the authentication error that you have shown in your post. Please let me know your suggestions on what I missed.
Please find my SMPT settings below,
Please find the last few lines of the log file that GreyGrey has mentioned below,
I made a mistake in the hostname. Once I fixed it, I got email notification on Alarms. Please find the screenshots attached below,