Sending SMS Messages from LabVIEW

Updated Jan 8, 2019

Reported In


  • LabVIEW Full
  • LabVIEW Professional

Issue Details

I would like to send an SMS to my mobile phone from LabVIEW.
How can I use the SMPT e-mail VIs to send a message via my mobile service provider to my mobile phone.


  1.  Contact your mobile service provider for the e-mail address of their SMS gateway. Use this address as "Carrier" in the program below"
  2. Choose an e-mail address you would like to use for sending e-mails to this gateway. Insert the details in the "Outgoing Mail Server (SMTP)", "Email" and "Password" fields.
  3. Insert phone number, Subject and message and run the program
You can also follow the instructions in of this example

Additional Information

As a final note, the most common difficulty encountered when using LabVIEW to send e-mail is choosing the appropriate mail server. One technique to troubleshoot mail server difficulties is to use the telnet command as described in the following steps:
  1.  Go to: Start » Program Files » Accessories » Command Prompt
  2.  In the command prompt window, type: “telnet [name of server] 25” and press enter

If the connection request is accepted by the server, you can verify that the mail server is valid. Thus, using that server name in LabVIEW should be successful.