I think your issue is the connection to the SMTP server. First off, the smtp server for gmail (according to
gmail help) is smtp.gmail.com, not smtp.google.com. Secondly, the port for the gmail smtp server is 465, while the SMTP vi's by default open port 25. Theoretically, you could edit the VI that opens a TCP port, but you would have to resave most of the smtp hierarchy to avoid changing the version saved in vi.lib. Finally and most importantly, the gmail smtp server requires SSL encryption, which I have no idea how to start implementing.
So how do you send mail in LabVIEW?
I have had luck communicating with the internal servers set up by our IT dept because they apparently have no authenication or encryption methods to navigate. In the non-corporate setting, I have also had luck using a
free SMTP server. When using this server, simply type "localhost" for the SMTP server. Finally, you could take a look at the ActiveX option
this post explores.
Hope this helps.
Spex
National Instruments
To the pessimist, the glass is half empty; to the optimist, the glass is half full; to the engineer, the glass is twice as big as it needs to be has a 2x safety factor...