I have configured Gmail as an External SMTP with phabricator instance. It was working fine and suddenly stopped working. PHPMailer configuration is as follows;

The outbound mails are being queued and not delivered. Also tried with 'tls' protocol.
21713 Queued for Delivery T1204: task name
While tracing the message, the following error message is shown
##trace log##
PROPERTIES
ID: 21713
Status: queued
Related PHID: PHID-TASK-j7wyjg5iwadfyezpul7a
Message: ***SMTP Error: Could not authenticate.***
PARAMETERS
subject: T1204: task name
from: PHID-USER-5qhdvvho4nt5oallclmk
subject-prefix: [Task]
vary-subject-prefix: [Commented On]
thread-id: maniphest-task-PHID-TASK-j7wyjg5iwadfyezpul7a
is-first-message:
exclude: []
mailtags: ["maniphest-comment"]
is-bulk: 1
to: ["PHID-USER-5qhdvvho4nt5oallclmk"]
reply-to: T1204+10+3233c43281706b19@phabricator.mydomain.com
HEADERS
Thread-Topic: T1204: task name
X-Herald-Rules: none
X-Phabricator-To: <PHID-USER-5qhdvvho4nt5oallclmk>
X-Phabricator-Cc: <PHID-USER-5qhdvvho4nt5oallclmk>
#
Any help would be appreciated.