Tublian / tos-oms-webmvc

vFunction pilot project
0 stars 0 forks source link

Enable sending emails #4

Open eldad-vfunction opened 2 months ago

eldad-vfunction commented 2 months ago

According to the requirements, the ModifyFulfillmentService is using the EmailService to send emails messages through the integration layer (EmailHttpClient interface) when a SalesOrder is modified, however, the EmailHttpClientImpl just prints a message and the method ModifyFulfillmentService.buildEmailRequest is stubbed.

Modify the code so that buildEmailRequest will fill in the details from the SalesOrder input class, including the customer email id (from the SalesOrder), and that the EmailHttpClientImpl will actually send an e-mail message. Use configuration properties to specify the necessary SMTP properties such as host, port, username and password.