Create an email notification service

Description

This should be a separate notification service that can allow sending email using a 3rd party provider.

Acceptance criteria:

  • I can configure a connection to an SMTP provider in the config

  • the service is able to send emails

  • the service accepts html as email format

Attachments

3

QAlity Plus - Test Management

Checklists

Activity

Pengfei Cui 
August 31, 2016 at 2:45 AM

Thanks, I replied in google group here.

Mary Jo Kochendorfer 
August 30, 2016 at 10:41 PM

Thanks. here is an example of another service...I think Chris highlighted where they interact at this point.

Paweł Gesek 
August 30, 2016 at 7:28 AM

Mary Jo Kochendorfer 
August 29, 2016 at 8:21 PM

is this running as a separate service right now?

Lucyna Laska 
August 10, 2016 at 1:29 PM
(edited)

All works.
Test steps:

1. Clone the openlmis-notiifcation service
2. Modify the mailbox credentials in src/main/resources/application.properties
for some mail account with proper data eq. gmail:

spring.mail.host=smtp.gmail.com
spring.mail.port=465
spring.mail.username=lkwidzinska.soldevelo@gmail.com
spring.mail.password=some.password

3. Launch gradle clean build command in command-line.
4. Launch gradle bootRun command in command-line.
5. Generate token for authentication.
6. Using some REST client, verify if the request to notification endpoint will return the proper status.

{
"from": "lkwidzinska.soldevelo@gmail.com",
"to": "lkwidzinska@soldevelo.com",
"subject": "Test",
"content": "abc"
}

The email was delivered successfully.

Done
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Time tracking

4d 4h 30m logged

Sprint

Fix versions

Priority

Time Assistant

Created July 28, 2016 at 11:55 AM
Updated August 31, 2016 at 2:45 AM
Resolved August 10, 2016 at 1:49 PM