LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[ERROR] Sending email on labview

I tried to use Labview example vi 'Send Email using SMTP Client.vi'. Setup is as attached PDF. I have clicked 'Configure Server' first, then clicked 'send email'. It always fails. I have tried different email boxes, none of them could work.

I also read a previous post: https://forums.ni.com/t5/LabVIEW/ERROR-Sending-email-on-labview-Gmail/td-p/3154411?lang=en  And set up in gmail to allow less secure apps according to this post. The vi still doesn't work.

My labview version is Labview 2013. 

Any help is greatly appreciated !

Download All
0 Kudos
Message 1 of 5
(2,838 Views)

Make sure you are using an application specific password, not the main gmail password.  If that doesn't solve the problem then I would assume something is getting blocked by a firewall.



I saw my father do some work on a car once as a kid and I asked him "How did you know how to do that?" He responded "I didn't, I had to figure it out."
Message 2 of 5
(2,829 Views)

Thank you for the answer!

 

I generated APP password and tried again. It still doesn't work.

 

As for firewall, there was a pop out window earlier asking if allow access. I chose allow already.

0 Kudos
Message 3 of 5
(2,815 Views)

It works fine for me.  I would assume something is still getting blocked further up the network, a corporate firewall perhaps.  The only other thing that has given me a timeout error before with this was attempting to use the SSL port 465 vs TLS 587. 

 

But using 587 with a gmail account, I can send en email from this VI to my work email no problem using the same settings you have posted in your screenshots.



I saw my father do some work on a car once as a kid and I asked him "How did you know how to do that?" He responded "I didn't, I had to figure it out."
0 Kudos
Message 4 of 5
(2,804 Views)

Thank you!

 

I will check firewall again.

0 Kudos
Message 5 of 5
(2,790 Views)