Send emails to members using templates#523
Send emails to members using templates#523ValeriyaMix wants to merge 35 commits intoWomen-Coding-Community:mainfrom
Conversation
…ails, Mentorship issues and Ad-hoc mentorship emails section.
src/main/resources/email-templates/mentorship_checkin_announcement_mentee.yml
Outdated
Show resolved
Hide resolved
src/main/java/com/wcc/platform/service/EmailTemplateService.java
Outdated
Show resolved
Hide resolved
src/main/resources/email-templates/book_using_email_adhoc_session_with_mentor_mentee.yml
Show resolved
Hide resolved
src/main/java/com/wcc/platform/domain/template/TemplateType.java
Outdated
Show resolved
Hide resolved
src/main/resources/email-templates/welcome_mentorship_mentee_mentor_long_term.yml
Outdated
Show resolved
Hide resolved
… the email request. Add methods to the EmailService and EmailTemplateService classes.
11e2675 to
03c26b2
Compare
…endTemplateEmail end-point was added.
…d templateParameters fields.
|
@ValeriyaMix do you have any update here? |
Hi @dricazenck , I’m seeing a failing integration test in the pipeline, although it passes consistently on my local environment. I’ve tried a few approaches to resolve it but I haven’t been able to identify the root cause yet. Please could you advise on what might be causing the issue? Thanks in advance for your help. Update: I have identified the issue and fixed the failing integration test. |
…il method in the EmailService class.
… empty for the sendTemplateEmail method in the EmailService class.
… avoid the PMD failures in CI.
…PMD failures in CI.
|
Hi @dricazenck , this PR is ready for review. All tests are passing and I have addressed all review comments. |
…ng from the ci command.
| emailBuilder.bcc(request.getBcc()); | ||
| } | ||
|
|
||
| if (request.getReplyTo() != null && !request.getReplyTo().isEmpty()) { |
There was a problem hiding this comment.
@ValeriyaMix you could use here and for other null/empty checks
if (StringUtils.isNotBlank(request.getReplyTo())) {|
|
||
| <p> | ||
| You can also express your interest in volunteering with us by submitting the following form: | ||
| <a href="{{volunteerFormUrl}}">Volunteer with Women Coding Community</a>, |
There was a problem hiding this comment.
@ValeriyaMix - just a heads up that I changed the text here as per this comment. You can either delete this file as it was merged, or resolve the conflict keeping the text that was merged :)
Description
Added all email templates from the shared Google document to the codebase in
.ymlformat.Introduced a new endpoint
sendTemplateEmail, which allows sending emails based on a selected template with dynamic parameters.Related Issue
This PR closes the issue #439
Change Type
Screenshots
New end-point in Swagger:
Added .yml file for the email templates:
Pull request checklist
Please check if your PR fulfills the following requirements: