Example Code

Mass SMS Message Example

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI sends a text message to any number of cellular phones capable of receiving text messages on most major service providers by sending SMS messages over the SMS server.

 

Description

This VI uses the SMTP VIs in LabVIEW to send a text message to any number of recipients. It works for most major cell phone carriers by interfacing with their SMS server email address. The exact provider domains are implemented in a combo box.

 

The SMTP VI requires a mail server address. These are usually in the form of mail.server.com. The SMTP email VI provided with LabVIEW does not allow connection to any SMTP server that requires authentication or encryption (at least not natively.) This eliminates the use of this example with GMAIL. The example will also not work with Hotmail since it does not have any traditional SMTP server (all access is through HTTP.) Be carefully of authentication and port requirements of your specific server.

 

 

Requirements to Run

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Enter values for Subject, Return Address, Mail Server, Phone Number, and Provider.
  2. Add the desired text to the Text Message field.
  3. Run the code using the Run arrow on the LabVIEW toolbar.

 

Additional Information or References

 

VI Snippet

1.png

 

 

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Asa Kirby
CompactRIO Product Marketing Manager
________________
Sail Fast!

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

Comments
Aum
Member
Member
on

This is gr8 utility. But I have LabVIEW Professional 8.5!

Can you provide a compatible version please

Captain_Kirby
NI Employee (retired)
on

No problem! New Version is attached.

Asa Kirby
CompactRIO Product Marketing Manager
________________
Sail Fast!
zamjir
Member
Member
on

hello

This is great VI, but I am wondering why you did not use .net from Windows  system (2.0.0.0).net and choose Mail message object and mail Message constructors and in this case if you do not have internet toolkit always works. email me and I willing to share it with all

bghy
Member
Member
on

Its not working in INDIA .

Please provide input to run this VI in India.

nad21
Member
Member
on

hi can this work with labview 9.0?

BenRobinson
Member
Member
on

The 8.6 version should run in LabVIEW 2009.

Ben R.
Aerospace & Defense Test
Solutions Marketer
National Instruments
Ogilvi09
Member
Member
on

The mass SMS services are super helpful for brands to notify their potential customers about their products or services that they are offering. The best thing is that it is an affordable approach. Even I am successfully utilizing the package that has been made especially for text marketing for real estate agents. Very happy with the features.

johnlimejk
Member
Member
on

Here's an example of a mass SMS message:

Dear valued customer,

We are excited to announce a special promotion for our loyal customers! For the next 24 hours, enjoy 20% off your entire purchase by using the code LOYAL20 at checkout. Don't miss out on this amazing opportunity!

Thank you for choosing our company.

Best regards

 

Source: SMSala Bulk SMS Service