I can send gmail manually, but I cannot always send SMTP gmail successfully, and the error occurrence rate is about 70 percent.
Error message : A connection attempted failed because the connected party did not properly respond after a period of time…
I have tried every method posted on the forum but still not working, such as modifying google and gmail settings,ssl,change 465 to 587 port etc.Then, I tried to put send SMTP with try catch in a loop, loop stops when it sends. Although it finally send SMTP mail, time wasted a lot in the loop. I tried to modify timeout to several seconds, but it still toke over 20 seconds to failure.
Do you have any good ideas? Thanks in advance, sorry for my mediocre English.