-
Notifications
You must be signed in to change notification settings - Fork 4
Testing Email
Alexandre Henrique Afonso Campos edited this page Oct 24, 2022
·
4 revisions
Sanity Check should email WRT with the analysis. Unless you are developing something related to email sending, there's no need for you to worry about that. Anyways, you can emulate that by sending an email to you.
You can create an App Password by following these instructions. You can choose Mail as the app and Other as device. Do not put your credentials in the code, pass it via command line instead.
- Build the project with
./gradlew build -x test
- Run it with:
./gradlew bootRun --args=' \
--spring.profiles.active=local \
--service.mail.send=true \
--spring.mail.host="smtp.gmail.com" \
--spring.mail.password="{{YOUR_APP_PASSWORD}}" \
--spring.mail.username="{{YOUR_EMAIL}}" \
--service.mail.from="{{YOUR_EMAIL}}" \
--service.mail.to="{{YOUR_EMAIL}}"'