-
Notifications
You must be signed in to change notification settings - Fork 1
Mail Service
Sjors Scholten edited this page Jun 3, 2021
·
2 revisions
The Mail service consists out of his own domain objects, but also uses the domain objects from other services (i.e. the package to compose the email). The mail service has a server-less architecture, using azure functions and SendGrid. The service is addressed from the outside using ComposeMailFun. This address is used with a HTTP Trigger in the API Gateway. Mails are composed using a MailComposer and forwarded as Mail objects to the SendMailFun using a queue. SendMailFun has the logic for sending mails through SendGrid.
(sidenote: This isn't a service that has to return REST based responses to the user)
Naam | Methode | Endpoint |
---|---|---|
ComposeArrivalMail | POST | /ArrivalMail |
ComposeTrackAndTraceMail | POST | /TrackAndTraceMail |
SendMail | Triggers Via Queue | N/A |
- ComposeArrivalMail: Creates an e-mail, to be sent when the package has arrived at a pick-up point.
- ComposeTrackAndTraceMail: Creates an e-mail with Track-and-Trace url, to be sent when the package has been registered by Fontys.
- SendMail: Sends an email to the recipient using SendGrid.