Hello @Lee_Po4 ,
have a look at this:
But if I am not wrong, access through “Less secure apps” is not available anymore with Gmail.
Try with another provider. I use outlook, and it works.
Have a nice day, Raffaello Barri LinkedIn