Gmail smtp server "shutdown" - alternatives

If you have two-factor auth (TFA) enabled on your Gmail account then you can generate an App password that openHAB can use. If you don’t have TFA enabled, you should go enable it right now anyway. See How to configure the Mail Binding to use GMail for sending email from openHAB for instructions.