You should configure your incoming and outgoing server details and need to login with your account. It all available in Email connector snippet in email module.
Before that you shouldn’t allow to merge any jar when you download the Email connector module and your application shoudn’t have any other email configuration module like Email with templates
Gmail have stopped access for less secure apps, so if you are trying to access Gmail’s SMTP server using a username and password it won’t work unless you are a Google Workspace or Google Cloud Identity customer.
You could look at setting an application password if you still need to connect with a less secure application.
Do you have access to a different SMTP service you could use instead?
First you have to put the SMTP configuration like SMTP server, port, after that you can send the mail.
If you have company’s test smtp server you can use that or you can use GMAIL smtp to do so.