09-10-2024 06:56 AM - edited 09-10-2024 06:58 AM
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
09-10-2024 10:10 AM
Did you try to receive emails with IMAP/POP3?
09-10-2024 10:28 AM
No. I have only sent emails not received.