Curl: (67) Login denied

hi
I’m using wp7608. Im trying to send mail by using curl commands

curl --url ‘smtps://smtp.gmail.com:465’ --ssl-reqd --mail-from ‘username@gmail.com’ --mail-rcpt ‘john@gmail.com’ --upload-file mail.txt --user ‘username@gmail.com:password’ --insecure

but Im getting error like curl: (67) Login denied.please tell me how to solve this problem

This may because of your Google account security setting, please try below link to turn on less secure access then try again.
https://www.google.com/settings/security/lesssecureapps

Hope it helps.
Thx

Thankyou for your reply
I turned on the less secure access,but still Im getting same error