09-21-2016 01:40 PM - edited 09-21-2016 01:51 PM
Until a couple of months ago, using the Mail tools to send e-mails via the gmail server worked fine using port 465.
First it stopped working from home and about a week or two later it also stopped working from my workplace. It has not worked since. (Seems like the various local servers are updated at different times)
(Yes, my specific gmail account is configured to allow less secure apps)
Apparently, google has retired some of the older SSL standards, so I wonder if the LabVIEW tools are suddenly no longer compatible. Is there a way to get this working again on port 465 (Yes, port 587 still works, but I wonder why 465 no longer works. It is more of an academic question at this point). What SSL flavors are used by LabVIEW for this?
09-22-2016 10:58 AM
I know that OpenSSL is used by LabVIEW. It looks like one of the new requirements stated in the google post is not being implemented. Unfortunately I am not sure which requirement that would be.
09-18-2018 11:07 AM
I am getting a similar problem on Aruba server, that uses only port 465.
Does Labview support sending mail on 465 port? As far I understand, there is a difference on implicit/explicit encryption between 465 and 587 port and, up to now I able to send mail through Labview only by 587 port.
Thank you for the support!
@Hey.itsDale
09-19-2018 03:19 PM
In the LabVIEW help for the SMTP Open Handle VI, it says that you can configure a port to use in the SMTP Open Handle VI by appending a colon an the port number to the server address. If you're using TLS, you have to wire a True to that terminal, since the default is unencrypted. You can then use the SMTP Config TLS VI to configure the encryption, so you should be able to set it up to send to port 465.
09-20-2018 09:51 AM
Thank you very much for your answer!
Unfortunately, the posted link refers to Labview 2017, while I am using Labview 2016 and I am not able to find the same VI. Can I install it also on Labview 2016 version?
Thank you!
09-20-2018 09:58 AM
...I have just found it also on Labview 2016...but is there also a complete example of mail sending?
Thank you!
09-20-2018 10:06 AM
If you open LabVIEW and click on Help >> Find Examples that will open up the NI Example Finder. Switch to the search tab and type "email" in the search bar that appears. There should be a "Send Email using SMTP Client.vi", and that is a working example that will show how to send email.
09-20-2018 10:44 AM
I am sorry, but I am not able to the use the example on stmp.gmail.com, while the attached VI works on Gmail on port 587
In my problem, I would like to send a mail on a server using 465 port
Thank you very much for your kind support!
09-20-2018 12:04 PM
I assume you mean smtp.gmail.com. if you misspell the server, it will not work on any port.
As outlined in my first post, Google has tightened the encryption standards, so this will not work with Gmail servers. It might still work with other smtp servers.
09-20-2018 12:21 PM
You can use stunnel to set up a proxy mail server on your computer (it's a lot easier than it sounds) to send whatever email system on whatever port using whatever encryption.
I use it with applications that are so stupid and/or outdated that they insist on using port 25, no encryption, to send email!