From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Gmail.vi example help

I am trying to work with this example vi

http://www.ni.com/example/30992/en/

 

It's used to log in to a gmail account and send an email to a recipient via labview. The gmail.vi however gives me an error... something about a .NET? I'm not really sure how to update the vi to make it work. Any advice/solutions? Thanks!!

 

FYI I want to use it as an alert/status alert for a pressure gauge I am monitoring via labview.

0 Kudos
Message 1 of 6
(3,194 Views)

You don't give us much to work with.  What is the error? Where does it come from?

 

That being said I'd guess the most common issue is you need to enable less secure apps from logging into your account to send emails.

 

https://support.google.com/accounts/answer/6010255?hl=en

0 Kudos
Message 2 of 6
(3,163 Views)

Here is the vi and the error. The vi is also available in the previous link.

Download All
0 Kudos
Message 3 of 6
(3,160 Views)

Yup secure connection issue for gmail was posted here.

 

https://forums.ni.com/t5/LabVIEW/ERROR-Sending-email-on-labview-Gmail/td-p/3154411

 

Which has the same solution which is to enable less secure apps on the account.

0 Kudos
Message 4 of 6
(3,147 Views)

I have already enabled that setting on my gmail account, but am still getting the same error.

0 Kudos
Message 5 of 6
(3,128 Views)

Try the version that I have attached below. I have been using it for years with no issues.

 

And from that error message, it actually looks like you are not using the correct port or not accessing a secure connection. What port are you using?

0 Kudos
Message 6 of 6
(3,117 Views)