GMAIL.vi
Overview
This example program shows how to send email from LabVIEW using GMAIL servers, and can be easily modified for other SMTP servers requiring TLS or SSL authentication.
Often times, it is useful to have LabVIEW send email (for example, to notify an administrator when an event has occurred). To do so, LabVIEW features built-in SMTP functions. Unfortunately, however, these functions do not currently support sending mail through SMTP servers that require authentication (such as TLS or SSL).
In modern times, nearly all email services require authentication. This holds true for the popular free GMAIL™ service provided by Google Inc., presenting a challenge for users who wish to access these services from LabVIEW.
Microsoft's .NET Framework, on the other hand, does support sending SSL and TSL authenticated email (such as that required by GMAIL™), which can be accessed using LabVIEW's .NET Constructor Nodes. The attached example program demonstrates how this is accomplished; it has been tested and pre-configured with GMAIL™ in mind; however. it should also work with other authenticated servers.
Requirements
Filename: gmail.vi
Software Requirements
Application Software: LabVIEW Professional Development System 8.5.1
Language(s): LabVIEW
Reader Comments | Submit a comment »
Works great.
Worked with gmail right out of the box.
Fantastic.
Haven't tried to make it work with other SMTP
servers yet, but works great with gmail right
now.
- May 18, 2009
Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).
