VB6 Sending Email using Gmail as a remote SMTP server

0

I have 2 applications that are written in VB6 each send email via CDO and GMAIL account. The applications worked perfectly for a couple of years. No changes to Code nor to the account from my side. But today when I tried to send an email I got an SMTP Error code 0x80040217. Then I tried the second application and I got the same error. I can remember that when I created the gmail account I had to enter the settings and select an option that I can't remember now. (Tried to look it in the account settings) but can't find it. Any help will be appreciated.

email
vb6
gmail
cdo.message
asked on Stack Overflow Dec 18, 2019 by Lev Shlomo

1 Answer

2

I found the missing setting that was changed (not by me) it is. Enable Less Secure Apps. - must be enabled other wise you can't send emails.

answered on Stack Overflow Dec 18, 2019 by Lev Shlomo

User contributions licensed under CC BY-SA 3.0