02-08-2018 04:16 AM
Hi,
I am using the built in Labview example "Send Email using SMTP CLIENT" and i am trying to send email using gmail server.
I have made basic changes into the gmail settings watching this video https://www.youtube.com/watch?v=D-NYmDWiFjU
But i am getting the error in connection with the host server. I have attached its picture so you can have a better idea of it.
Can anyone please guide me what shall i do to overcome this error message.
Thanks in advance
Solved! Go to Solution.
02-08-2018 04:47 AM
Ensure Enable TLS is true and use port 587.
02-08-2018 05:09 AM
Thanks for your reply.
I have applied the changes but the error is still same.
02-08-2018 05:22 AM - edited 02-08-2018 05:23 AM
Can you check if less secure apps access is enabled as per the following comment:
https://lavag.org/topic/19806-smtp-pain/?do=findComment&comment=119902
More info:
02-08-2018 06:52 AM
I recently needed to do this and got different errors. So this may or may not help you.
Try logging into gmail through a browser on that PC first. I got an error where my username and password were rejected even though they were correct. Turns out Gmail was rejecting e-mails from devices it did not recognize. Once I logged in through the browser and went through the device authentication process, my app started working.
02-08-2018 08:55 AM
Hello Abuzar,
Ensure you turned off all the virus protection programs you have e.g. Kaspersky. That will usually cause the SMTP to not work properly.
02-09-2018 12:24 AM
I have tried all, but its not working. I believe the main reason behind might be of my location. As i am using it in China where all the google products are ban.
While i have tried it using VPN but still didn't worked.
I think better to change the server.
Any advice how can i use the outlook.com to create the same SMTP server.
Thanks a lot to all of you.
02-09-2018 12:50 AM
So, finally using the Outlook, it worked. I believe that the main reason was my destination. i.e. china.