I am trying to send a mail from my gmail to the same using the SMTP. I am using Port 587 and address is “smtp.gmail.com” I am not getting any errors the bot executes properly but no mails is retrieved. I need assistance on this. I even tried enabling the less secure apps and after that as well it did not work.
Now we got it. I was having trouble so this is what I did just today:
•Turn On: Less secure apps access, very important: “Log Out and then Log In”
•Port: 465
•Server: smtp.gmail.com
•Secure connection: auto
Many thanks for the solution, I was able to receive the mail from my own gmail after changing the port Number of SMTP to 465. I just have one question though why is that SMTP with 587 did not work earlier? Because other than that I did not change anything in the sequence
Good question, that best I can think of is that if you notice 465 would apply to google/gmail but looking 587 would be for Microsoft Outlook. I believe they have their own way to treat security through those port numbers. I do use the 587 but when using MS Outlook and also use 465 when use Gmail.