Virus scan in progress. Please wait to download attachments.
This example shows how to send email attachments from LabVIEW using any SMTP email service, such as Gmail.
This example is based off of a previous example, which enables you to send an email using Simple Mail Transfer Protocol (SMTP) to sync up with Gmail in LabVIEW. The code has been simplified and cleaned up in this example.
LabVIEW 2012 (or compatible)
An e-mail account using a SMTP outgoing mail server
Steps to Implement or Execute Code
Open the attached VI
On the front panel configure the following inputs:
Email Account ID and password
SMTP Outgoing Mail Server (if using Gmail, you can set it to smtp.gmail.com)
The email address for From:
The email address for To:
Subject:, Body:, and Attachment Path
Run the VI to send an email with all of the configured inputs
Note: If you receive Error -1172 with this example, you may have to change your e-mail account protection settings.
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.