Added a new servlet POST at /api/feedback. Basically you send it a message prop in the request:
{"message" : "your website sucks."}
and it responds with whether the email was sent succesfully:
{"success" : "true"}
It uses the Apache commons email Java library to send the email. Just like the webscraping storers, it uses our gmail account concordiacourseplanner@gmail.com to authenticate with the gmail smtp server but it sends the email only to itself, not to all our personal gmails. So basically all the feedback we get will be listed as received emails if you log into that account on gmail.com.
related to issue #133
Summary
Added a new servlet POST at
/api/feedback
. Basically you send it amessage
prop in the request:and it responds with whether the email was sent succesfully:
It uses the Apache commons email Java library to send the email. Just like the webscraping storers, it uses our gmail account concordiacourseplanner@gmail.com to authenticate with the gmail smtp server but it sends the email only to itself, not to all our personal gmails. So basically all the feedback we get will be listed as received emails if you log into that account on gmail.com.
Test
Try sending the request on
courseplannerd
:Then log in and make the sure the email was received.
Hint: see diffs for gmail password 😉