Overview
Send an email using Simple Mail Trasfer Protocol (SMTP) to sync up with Gmail. LabVIEW still does not interact with email servers that need authentication, but the System.SmtpClient Class does interact with open email accounts.
Description
This VI uses SMTP property nodes in order to write a standard email and send it via a Gmail account. For more information about SMTP check out this link.
Steps to Implement of Execute
Prior to running the code type in all the necessary information.
Once the email is created push the Run Arrow in order to send the email.
Note: If you receive Error -1172 with this example, try logging into the Gmail account with your browser. This error can occur with Gmail accounts that have been inactive for a period of time. You must log in with a browser and verify CAPTCHA text to reactivate the account.
Requirements
LabVIEW 2012 (or compatible)
Additional Information or References
Block Diagram
Front Panel
**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.
Thank you! It is the only VI that really works!
Very helpful. Now we can take it from there
8 years later and here I'm saying thak you. It's been very hepful to me.
Hello,
I used this VI on windows 7 and it works, but It did not work on windows 10.
These are the error code.
constructore note: Node not supported in current target.
Wire: type not supported in current target
The wire color is Green.
Please advise.
Thanks.
Worked for me using Port 587, TLS enabled, and usage of "less secure app access" setting ON in gmail account security settings with LabVIEW's example vi "Send Email using SMTP Client.vi"
Has anyone had succes using TLS 1.2 on outlook.office365.com ?