Unable to send email(Gmail) automatically

In our academic group, we are using Camunda to automate our group processes. We need an automatic email sending in our processes, so I added a connector as mail-send. But since May 31, Google has changed its privacy rules, in order for the software to access the Gmail account and send emails, they need a second password.

My question is, do you have a solution to this problem? Or do you have a tutorial to add the sending email ability in our Camunda processes?

You could try to use an external task.
You can find a code example here: