![]() |
|
|
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
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.
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
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
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
the code is a bit messy but the function it brings is great !
thanks