Thunderbird GMail SMTP Error

Port 465 is for SSL. Is that what you have configured?
Can you try port 587 for TLS/STARTTLS?
Or port 25 for no encryption