kblincoe / QualOpt_SE701

2 stars 15 forks source link

Link Service to Send Invitation button; now sends out emails #76

Closed will-molloy closed 6 years ago

will-molloy commented 6 years ago

Solution to #71

Currently using a test gmail account (tt7199425@gmail.com) as I don't know how to authenticate the users email (possibly related to #37). However, it is successfully sending invitations from this gmail account.

Test:

  1. Login as admin (admin:admin).
  2. Create participants and a study.
  3. View the study and click Send Invitation.
  4. Participants now receive invitation emails.
pulkitkalra commented 6 years ago

Firewall for some antiviruses (E.g. avast) was blocking the email from being sent. @wilmol This should fix it: props.put("mail.smtp.ssl.trust", "smtp.gmail.com"); In the StudyService, method: getUserEmailSession()

Not sure about the impact of this from a security point of view

softeng-701 commented 6 years ago

@wilmol Please resolve the conflicts asap, thank you.

will-molloy commented 6 years ago

@softeng-701 fixed :)

softeng-701 commented 6 years ago

@wilmol Awesome!

AprajitGandhi commented 6 years ago

Tested it, good unit tests - they all pass too. Good commenting. Approved