Java Application to create secret santa matches
- Ensure that you have gradle and java in your build path
- From the root of the project run gradle eclipse
- Import the folder in eclipse
- Ensure that participants.properties and smtp.properties are present in the project root
- From the project root, run gradle run
- The application needs a list of participants, the comma separated participants lists is expected to be present in a .properties file, under the keyname participants
- The participants file can also be specified from command line.
- If no command line argument is passed it looks for a file participants.properties in the root folder
- This is currently in progress, but the way things are written SMTP configuration is expected in smtp.properties.
- Logging is broken
- JUnits are not written
- Updating read me with steps to invoke the matcher from the distribution files
participants=email1@somedomain.com,email2@somedomain2.com,ashish@example.com,dummy@dummy.com
smtpPort=587
smtpHost=smtp.gmail.com
smtpUsername=yourgmailusername@gmail.com
mailText=Your match is %s
smtpPassword=YourPassword
subject=Secret Santa is Here!
I have multifactor enabled for my google account, and also by default gmail does not let you send mail with your regular login credentials. So i generated an application password from gmail account settings. At the time of writing this document, the app password can be generated from this link https://myaccount.google.com/apppasswords
Please raise an issue :D Happy to help!