Skip to content

feat: wires emails to Adhoc & LongTerm flows#703

Merged
Sowmiya07 merged 8 commits into
Women-Coding-Community:mainfrom
Sowmiya07:feat/add-email-template
Jun 16, 2026
Merged

feat: wires emails to Adhoc & LongTerm flows#703
Sowmiya07 merged 8 commits into
Women-Coding-Community:mainfrom
Sowmiya07:feat/add-email-template

Conversation

@Sowmiya07

@Sowmiya07 Sowmiya07 commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Rename NEW_MENTEES_LONG to NEW_MENTEES_REVIEW to accommodate both Long Term and Adhoc
Adds 2 template for Long Term and Adhoc matching

Wire the above templates to following flows

  1. Manually assign mentor
  2. Admin Approve Application
  3. Admin confirm the match
  4. Fix Email Signature
  5. Split MenteeWorkflowService tests into multiple files based on operation due to the growing number of test methods.

Related issues #659 #681

Tested in local
Admin Approves an application

image

Admin confirm match
image

"mentor_email", mentor.getEmail(),
"mentee_email", mentee.getEmail(),
"mentor_calendly_link", Optional.ofNullable(mentor.getCalendlyLink()).orElse(""),
"meeting_link", "",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be populated in next PR

emailService.sendEmail(emailRequest);
log.info("{} notification successfully sent to {}", templateType, recipientEmails);
} catch (EmailSendException e) {
} catch (Exception e) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In local dev, application was crashing when Email couldn't be sent successfully with MailAuthenticationException.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should handle this MailAuthenticationException

@Sowmiya07 Sowmiya07 changed the title Feat/add email template Feat/wires emails to Adhoc & LongTerm flows Jun 15, 2026
@dricazenck dricazenck changed the title Feat/wires emails to Adhoc & LongTerm flows feat: wires emails to Adhoc & LongTerm flows Jun 15, 2026
* @param templateParams the parameters to use for rendering the template
*/
@SuppressWarnings(
"PMD.AvoidCatchingGenericException") // intentional: email failures must never break the

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should handle

<p>
<strong>Please note:</strong> If you have not logged into the dashboard before, you should have received a password reset email from <strong>admin@womencodingcommunity.com</strong> prior to this email.
If you cannot find it, please check your spam/junk folder first. If you still haven’t received it, please reply to this email and we’ll resend it for you.
<strong>Please note:</strong> If you have not logged into the dashboard before, please reply to this email, so we can send a password reset email from <strong>admin@womencodingcommunity.com</strong>.

@dricazenck dricazenck Jun 15, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be send the email to mentorship@womencodingcommunity.com not to admin, the admin does not receive any email. This was been disabled.
Please load the property from:

notification:
  mentorship-email: mentorship@womencodingcommunity.com

You can search in the code by:

notificationConfig.getMentorshipEmail()

</p>

<ul>
<li><a href="https://mentorship.womencodingcommunity.com/mentorship/resources">Mentorship Resources</a></li>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The website -frontend is not fixed yet, I think @Deejarh was the one to fix this changes.

Comment thread src/main/resources/application.yml Outdated
<br>
Follow us:<br>
<a href="https://www.linkedin.com/company/womencodingcommunity/">LinkedIn</a> |
<a href="https://www.instagram.com/women_coding_community/">Instagram</a> |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use Instagram anymore, as far as I am aware.

Comment thread src/main/resources/application.yml Outdated
<a href="https://www.youtube.com/@womencodingcommunity">YouTube</a> |
<a href="https://www.meetup.com/women-coding-community">Meetup</a> |
<a href="https://github.com/Women-Coding-Community">GitHub</a> |
<a href="https://womencodingcommunity.slack.com/join">Slack</a> |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this link does not work, please review the one we already have in our footer:
https://join.slack.com/t/womencodingcommunity/shared_invite/zt-2hpjwpx7l-rgceYBIWp6pCiwc0hVsX8A

@sonarqubecloud

Copy link
Copy Markdown

@Sowmiya07 Sowmiya07 merged commit a42ea69 into Women-Coding-Community:main Jun 16, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants