In local, mail works perfectly. But in online I got error like:
SMTP->ERROR:Password not accepted from server:534-5.7.14 Please log in via your web browser 534-5.7.14 then try again. Learn more at 534-5.7.14 https://support.google.com/mail/answer/78754z190sm15009353oig-25 - gsmtp Message was not sent.mailer Error:SMTP Error:Could not connect to SMTP host.

Password not accepted from server

This should be pretty obvious. No idea what you are trying to connect to, because the link is broken, so post your code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.