Showing results for 
Search instead for 
Did you mean: 
Reply

Send email on labview using the Gmail Server (TLS)

Send email on labview using the Gmail Server (TLS)

Hello,
I am trying to using the Google mail server to send email from LabVIEW. I actualy try to use the library of the OpenG OGIC_SMTP. The problem is when talking with the server, I received the message require to do TLS. After sending STARTTLS, I receive this message 220 2.0.0 Ready to start TLS. I don't know what I should do next.
Please tell me what is the next step? I do a lot of googling but only the recommend that after TLS is negotiate with the server. But I don't know how to do that.
I highly appriciate any help.
Best Regards,
Thang Nguyen
0 Kudos
Message 1 of 111 (16,170 Views)
Reply
0 Kudos

Re: Send email on labview using the Gmail Server (TLS)

Hello Nang,

It would us if you could show which code you used and which protocol you (try to) follow!

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 111 (16,155 Views)
Reply
0 Kudos

Re: Send email on labview using the Gmail Server (TLS)

Hi TonP,
Could you please take a look at the VI OGIC_SMTP_Main.vi in the internet toolkit at OpenG? http://openg.org/tiki/tiki-index.php?page=OpenG+Internet+Connectivity+Tools#attachments
You can download at the attachment tab.
Because I still try to modify this function with adding some command, so there is not any vi from myself. That's the reason why I don't have any VI to send you.
Thank you for your patient to answer my question.
Thang Nguyen
0 Kudos
Message 3 of 111 (16,133 Views)
Reply
0 Kudos

Re: Send email on labview using the Gmail Server (TLS)

I have answered your question, here.
Thinking in G
0 Kudos
Message 4 of 111 (16,129 Views)
Reply
0 Kudos

Re: Send email on labview using the Gmail Server (TLS)

Hi Jim,

I read your answer already. I just want to answer TonP.

Thank you so much for your answer,

Thang Nguyen

0 Kudos
Message 5 of 111 (16,125 Views)
Reply
0 Kudos

Re: Send email on labview using the Gmail Server (TLS)

I managed to accomplish this fairly easily using the Microsoft .NET Framework.  Of course, that means it will only work in Windows for the time being.  See the attached gmail.vi.
Eric V
National Instruments
Applications Engineer
Certified LabVIEW Associate Developer


"I'm a Ramblin' Wreck from Georgia Tech and a helluva (NI Applications) Engineer!"
Message 6 of 111 (15,523 Views)

Re: Send email on labview using the Gmail Server (TLS)

I have used this gmail VI with decent success.  However, when I attach a file, it seems to leave the file open so that I cannot open it elsewhere in the program.  Is there  a way to fix this?

 

Thanks,

 

Andy

0 Kudos
Message 7 of 111 (15,287 Views)
Reply
0 Kudos

Re: Send email on labview using the Gmail Server (TLS)

[ Edited ]

I assume that if you close all of the refernces you should have no problem:

 

 

Ton

 

Message Edited by TonP on 10-04-2008 11:12 AM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 8 of 111 (15,265 Views)

Re: Send email on labview using the Gmail Server (TLS)

If possible, could some one please post a version of 'gmail.vi' for LabView 8.2?  Thanks!

0 Kudos
Message 9 of 111 (15,111 Views)
Reply
0 Kudos

Re: Send email on labview using the Gmail Server (TLS)

Here you go.
Message 10 of 111 (15,075 Views)