Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Internet Toolkit Troubleshooting Wizard

SMTP Basics

SMTP (Simple Mail Transfer Protocol) VIs are the building blocks that you can use to write programs that automatically send electronic mail, including attached data and files. Access these VIs on the LabVIEW block diagram Functions palette by looking under User Libraries >> Internet Toolkit >> Email VIs.

One important thing to remember regarding the SMTP VIs is that you must specify a valid mail server either in the labview\internet\internet.ini configuration file or else by wiring a valid input into the mail server terminal of a given mail VI every time you use it. This mail server must be the hostname or IP address of an external server machine that is willing to service requests from the machine running the Internet Toolkit. If you are uncertain about the appropriate mail server for your company or university, contact one of your network administrator to get the name of a valid server.

The following is an example of how to use the easy SMTP VI "SMTP Send Message" VI on a LabVIEW block diagram to send somebody a message programmatically. In this example, we have specified the mail server, the intended recipient of the message, the subject, and the content of the message:


Using the SMTP Send Mail VI

Other SMTP VIs can be used to send messages with data attachments and/or file attachments.



Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality?   Answered Your Question? 
  1 2 3 4 5
Please Provide Additional Feedback below
Please visit Request Support for product support inquiries. submit