This small Java application can be used to send emails from an associated gmail (or any other email) account.
Note that you need access to the email account from which the emails are supposed to be sent.
In order to use this example service, you have to
- specify the email address, passwort and username in the
application.properties
file (or in your cloud environment) - check the SMTP configuration used in the EmailSender The default settings should work with gmail.
- deploy it somewhere (e.g. SAP CP CF)
In order to use this service with gmail, you have to enable access for less secure apps because this service is not using OAuth2 to authenticate with google.
I would recommend to not use your personal email account. Instead go ahead and create a dummy email account =)