Email problem after upgrade

I updated to latest version for linux and i can not send mail anymore. I use a gmailaccount and get these errors:

System.Net.Mail.SmtpException: System.Net.Mail.SmtpException: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 Check Gmail through other email platforms - Gmail Help sd8sm6991035ejb.58 - gsmtp
at System.Net.Mail.SmtpClient.CheckStatus (System.Net.Mail.SmtpClient+SmtpResponse status, System.Int32 i) [0x0001a] in :0
at System.Net.Mail.SmtpClient.Authenticate (System.String user, System.String password) [0x00065] in :0
at System.Net.Mail.SmtpClient.Authenticate () [0x000b1] in :0
at System.Net.Mail.SmtpClient.SendCore (System.Net.Mail.MailMessage message) [0x00132] in :0
at System.Net.Mail.SmtpClient.SendInternal (System.Net.Mail.MailMessage message) [0x00050] in :0
at System.Net.Mail.SmtpClient.Send (System.Net.Mail.MailMessage message) [0x00091] in :0
at ManagerServer.HttpHandlers.Businesses.Business.SendEmail.Post () [0x00550] in <8deb9d2e4f9942f8807ca4604421b142>:0

By the way i am on ubuntu 20.04 but 18.04 gives same issue. And i am 300% sure the username and password are correct.
Regards