Example Code

Sending SMS (text messages) using SMTP with LabVIEW

Code and Documents

Attachment

Many times it can be convenient to have LabVIEW send a text message. Unfortunately, LabVIEW is not a cell phone, however, it can use free services (*text messaging fees may apply) provided by phone service providers to send an email which is then transformed into a text message. In the example below, the "Send SMS example.vi" calls  the "Send SMS.vi" to send a text message using SMTP (Simple Mail Transfer Protocol). Note that in the example the smtp server that is used is GMail's; you will need a gmail account to send the email. It is possible to change the SMTP server by simply modifying the appropriate control.

Send SMS.png

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors