NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Gmail using LabVIEW

VERSION 7

Created on: Oct 22, 2008 3:03 PM by G-Money - Last Modified:  Apr 1, 2009 3:47 PM by Pie56694

REQUIREMENTS:
Application Software: LabVIEW Full Development System 8.6,8.0
Driver Software: NI-DAQmx 8.8,8.7.2,8.7.1,8.7,8.6.1,8.6
Hardware Family: CompactDAQ, Multifunction DAQ (MIO), PXI/CompactPCI
Add-on Software: LabVIEW Vision Development Module 4.0
Product Category: LabVIEW
Development Topic: Acquiring User Input, Building a User Interface, Listboxes and Tables
Industry: Electromechanics/ Electrotechnics
Application Type: Frequency
Technology: Express VIs

Have you ever wanted your VI to send you an email to your Gmail account when it gets done? Well this example code does just that. This VI uses SMTP to link up with Gmail to send an email. LabVIEW still does not interact with email servers that need authentication, but the System.SmtpClient Class does interact with open email accounts.I have posted the code for LabVIEW 8.6 and 8.0. If you need it in something lower, recreate the code based off of the picture below. Enjoy!!

 

Code created by AE Eric Vogel

 

gmail.JPG

 

Note: If you receive Error -1172 with this example, try logging into the Gmail account with your browser.  This error can occur with Gmail accounts that have been inactive for a period of time.  You must log in with a browser and verify CAPTCHA text to reactivate the account.

 

Downloads:
Average User Rating
(6 ratings)




Antoine CHÂLONS Antoine CHÂLONS  says:

the code is a bit messy but the function it brings is great !

thanks

Waleed El-Badry Waleed El-Badry  says in response to Antoine CHÂLONS:

Nice Post G-Money. Very Helpful indeed

niks niks  says:

Hi  G- Money ,

its very helpful

Branson Branson  says:

wow, very helpful!

duyson duyson  says:

Dear G-money. I am doing  a project about smart house. I want to use your project in alarming through sending a gmail automatically. How can I integrate your VI to my project. My project is measure temperature and auto alarm through email if the temperature is higher than 50(C). Please give me the advices.

Thank you very much and wish you a nice day!

 

Son

email: tongduysonth@yahoo.com

todd.davis todd.davis  says:

Thanks for developing this.  I am trying to send this via my school's server and get the 1172 error.  I retried with my active gmail account and get the 1172 error as well.  What else could be the problem?

 

Thanks

Gregoire Gregoire  says:

Hello,

I'm working with Labview 7.0, .Net Framework 2.0 and Windows 2000 Professional.

 

I tried to do the equivalent .vi on my software but I had a class conflict betwenn NetworkCredential and SMTPClient.Credentials

 

May be some one has already fix my problem

 

Thanks

More Like This

  • Retrieving data ...