Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1270

Unify Fineract 3 (!) different email sender utilities

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      While looking into addressing FINERACT-1092, I've just noticed that the Fineract code base has not 1 and not 2 but 3 classes which send email:

      • org.apache.fineract.infrastructure.core.service.GmailBackedPlatformEmailService
      • org.apache.fineract.infrastructure.campaigns.email.service.EmailMessageJobEmailServiceImpl
      • org.apache.fineract.infrastructure.reportmailingjob.service.ReportMailingJobEmailServiceImpl

      The best thing is that 2 of those use org.springframework.mail.javamail whereas the 3rd (and probably oldest?) uses org.apache.commons.mail instead.

      They, apparently, also use 3 completely different mail server configurations in the database! This doesn't make any sense - I cannot imagine anyone wanting to use 3 different mail server for 3 purposes.

      Let's merge all this? Best step by step, in a series of several small PRs, instead of 1 big one. The DB change may also require DB migration scripts to remove the old config (depending on how we want to "migrate").

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vorburger Michael Vorburger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: