LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Sending email with LabVIEW prior to 2012

Solved!
Go to solution
Solution
Accepted by topic author lorc34

OK I have managed to get it to work with Gmail. I think my issue may have been I was using my app password username in the 'username' field, not my email address, in combination with incorrect port settings.

 

I have attached my VI (Labview 2010)

 

As of 30 September 2024, 20 days away, gmail will stop allowing 'less secure apps'. You must therefore use 'app passwords' after you have enabled 2 Factor Authentication on your account.

 

1. Enable 2 Factor Authentication on your gmail account

2. Go to https://myaccount.google.com/apppasswords and sign in
3. Create an app password. It will be something like this: aaaa bbbb cccc dddd. Remove the spaces so its aaaabbbbccccdddd (16 characters)
4. Now enter the following details in labview:

 

host = smtp.gmail.com

port = 587

username = your gmail email address (Not app password username!)

password = aaaabbbbccccdddd (use your app password from gmail)

enableSSL = true

recipient = recipient email

sender = sender email (this doesnt do anything as it still shows up as your gmail email)

 

I have filled in most of the info but u need to replace with your own in some of the boxes.

 

I also attached for Labview 8.0 incase needed

0 Kudos
Message 11 of 13
(136 Views)

Did you try to receive emails with IMAP/POP3?

0 Kudos
Message 12 of 13
(113 Views)

No. I have only sent emails not received.

0 Kudos
Message 13 of 13
(110 Views)