Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Send Email using Gmail from a Labview-RT target

I am trying to have my cfp-2120 send emails.  I am using labview 2010.  I have tried using the VIs that were provided above but I am still getting Error 53, Error 53 occurred at ??? in NI_SMTPEmail.lvlib:SMTP Email Send Message.vi:1->ACE RT Main.vi

 

Possible reason(s): LabVIEW:  Manager call not supported

 

Do you have any advice?

0 Kudos
Message 11 of 19
(3,666 Views)

Hi DrewCommPower,

 

The built-in SMTP VIs do not support authentication protocols, so you won't be able to send emails to Gmail accounts.  I would continue searching other threads for this question; I think there is some workaround code.  You can also try looking at these tools:  http://wiki.openg.org/OpenG_Internet_Connectivity_Tools.  It's old, but could work in this case.

0 Kudos
Message 12 of 19
(3,665 Views)

Emailing to gmail would be nice but I am just looking to get an email an email through our company's mail server and on to outlook.  I had some trouble with your linked VIs.  I have attached the server/client dialog that it produced.  Any ideas?

0 Kudos
Message 13 of 19
(3,663 Views)

Error 56 is a TCP timeout.

 

Is port 25 allowed on your network?  One easy way to check is to use the VI on your localhost first and send a test email.  Also, how is the cRIO connected to the network?

0 Kudos
Message 14 of 19
(3,657 Views)

I just wanted to revisit this subject.  Is there a solution for sending authenticated SMTP email using native code (i.e. not using a .NET object, thus allowing for real-time targets)?  I've searched, but haven't seen a definitive response.  Thanks.

0 Kudos
Message 15 of 19
(2,694 Views)

Hi JoeLesker,

 

Unfortunately, Gmail requires .NET authentication to send emails which is not compatible with RT targets. 

 

Depending on your application, it might be beneficial to transfer files using the FTP to the host computer and have the host computer send email notifications. 

 

Regards,

Jordan G.

LabVIEW Product Marketing Engineer
National Instruments
0 Kudos
Message 16 of 19
(2,677 Views)

Thanks for the reply Jordan.  Doing StartTLS authentication using native Labview should be possible, I was just wondering if anyone had done it yet.

 

I'm using a sbRIO, and the host won't always be available.  So I was hoping to have the real time target handle all the internet communications.

0 Kudos
Message 17 of 19
(2,675 Views)

Hi JoeLesker,

 

Have you tried installing the SMTP with SSL Support to your real-time target? This will enable SSL support with SMTP functions on a real-time target and will allow using Gmail from a LabVIEW RT target.

 

Regards,

Jordan G.

 

 

LabVIEW Product Marketing Engineer
National Instruments
0 Kudos
Message 18 of 19
(2,662 Views)

Thanks.  It appears that is new with LV 2013, correct?  I was still using 2012 with this project.

0 Kudos
Message 19 of 19
(2,633 Views)