I have no problem testing on my local machine and then when i upload to webserver, it is showing:
Login failed. Please check the email and password you have provided and try again later !
Tips:
set_time_limit(0)Is this warning set_time_limit(0) the main cause OR why else?
One of the possibilities could be that gmail has blocked your servers ip? is it a shared server? try some other account as well like live or yahoo or whatever just to see if this situation applies to all types of accounts or just gmail.