I created a draft pull request for the emailing feature we discussed on the last standup meeting. (Engineering Team Weekly Stand Ups 2022 - #3 by Gravewalker)
Endpoint:
POST /admin/program/{id}/email
Request Body:
{
subject: String,
message: String,
mailGroup: Enum("ALL", "ALL_MENTORS", "ALL_MENTEES", "SELECTED_MENTORS", "REJECTED_MENTORS", "SELECTED_MENTEES", "REJECTED_MENTEES"),
additionalEmails: [array of string] (to send the emails in them)
},
}
Usage of the endpoint: Sending emails to the selected group and additional email addresses with the given message and subject
Draft PR link: https://github.com/sef-global/scholarx/pull/320
cc: @EngTeam